rapier物理库
This commit is contained in:
29
pinball-physics/Cargo.toml
Normal file
29
pinball-physics/Cargo.toml
Normal file
@@ -0,0 +1,29 @@
|
||||
[package]
|
||||
name = "pinball-physics"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib", "rlib"]
|
||||
|
||||
[dependencies]
|
||||
rapier2d = "0.18"
|
||||
|
||||
# runtime utilities
|
||||
once_cell = "1.21"
|
||||
|
||||
wasm-bindgen = { version = "0.2", optional = true }
|
||||
|
||||
# If you need wasm-bindgen for browser-side usage, enable the optional feature
|
||||
[features]
|
||||
default = []
|
||||
wasm = ["wasm-bindgen"]
|
||||
|
||||
# Optional: useful for WASM builds (only pulled for wasm target)
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
console_error_panic_hook = "0.1"
|
||||
|
||||
[profile.release]
|
||||
opt-level = "z" # Optimize for size
|
||||
lto = true # Enable Link Time Optimization
|
||||
codegen-units = 1 # Reduce number of codegen units to increase optimizations
|
||||
Reference in New Issue
Block a user