One or more of the transitive dependencies needs Rust 1.88 or newer, so this becomes our minimum version. It may be possible to build with an older Rust by manually picking dependency versions but I'm not going to do that. Ideally, `-Zminimal-versions` would pick out those versions, but lots of crates don't correctly specify minimum depdendency versions. As a result, our transitive dependencies resolve to matching-but-non-functional versions.
56 lines
1.0 KiB
TOML
56 lines
1.0 KiB
TOML
[package]
|
|
name = "another-boids-in-rust"
|
|
version = "0.7.0"
|
|
edition = "2024"
|
|
license = "AGPL-3.0-only"
|
|
rust-version = "1.88.0"
|
|
|
|
[dependencies]
|
|
bevy = "0.16.0"
|
|
bevy-inspector-egui = "0.32"
|
|
|
|
# Grand-dependency pins
|
|
# ab_glyph = "0.2.16"
|
|
# fnv = "1.0.6"
|
|
# gilrs = "0.10.5"
|
|
# lazy_static = "1.0.2"
|
|
# lock_api = "0.4.7"
|
|
# miniz-sys = "0.1.10"
|
|
# nonmax = "0.5.1"
|
|
# rand = "0.8.0"
|
|
|
|
# Use regular bevy_spatial on non-WASM builds
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
bevy_spatial = "0.11.0"
|
|
|
|
# Use bevy_spatial *without* the kdtree_rayon feature when building for WASM.
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.bevy_spatial]
|
|
version = "0.11.0"
|
|
default-features = false
|
|
features = ["kdtree"]
|
|
|
|
[profile.dev]
|
|
opt-level = 1
|
|
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|
|
|
|
[profile.release]
|
|
# codegen-units = 1
|
|
lto = "fat"
|
|
|
|
[profile.mini]
|
|
inherits = "release"
|
|
lto = true
|
|
opt-level = "z"
|
|
codegen-units = 1
|
|
strip = "symbols"
|
|
panic = "abort"
|
|
|
|
[profile.wasm-release]
|
|
codegen-units = 1
|
|
inherits = "release"
|
|
lto = "fat"
|
|
opt-level = "z"
|
|
strip = "symbols"
|