29 lines
792 B
TOML
29 lines
792 B
TOML
[package]
|
|
name = "moria"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
bevy = "0.8.0"
|
|
bevy_mod_raycast = "0.6.0"
|
|
|
|
# Enable a small amount of optimization in debug mode
|
|
[profile.dev]
|
|
opt-level = 1
|
|
|
|
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|
|
|
|
[profile.wasm-release]
|
|
inherits = "release"
|
|
# Optimize with size in mind, also try "s", sometimes it is better.
|
|
# This doesn't increase compilation times compared to -O3, great improvements
|
|
opt-level = "z"
|
|
# Do a second optimization pass removing duplicate or unused code from dependencies.
|
|
# Slows compile times, marginal improvements
|
|
lto = "fat"
|
|
# When building crates, optimize larger chunks at a time
|
|
# Slows compile times, marginal improvements
|
|
codegen-units = 1
|