chore: enable link-time-optimization for release builds
This commit is contained in:
parent
1522a80c92
commit
1d5b1739be
|
@ -3,12 +3,13 @@ name = "aspiration"
|
|||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
# Squeeze out more performance for `release` builds - very slow compile times
|
||||
[profile.release]
|
||||
lto = "thin"
|
||||
|
||||
# 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
|
||||
|
|
Reference in a new issue