chore: enable link-time-optimization for release builds

This commit is contained in:
Muhammad Nauman Raza 2023-11-27 09:29:56 +00:00
parent 1522a80c92
commit 1d5b1739be
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -3,12 +3,13 @@ name = "aspiration"
version = "0.1.0" version = "0.1.0"
edition = "2021" 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 # Enable a small amount of optimization in debug mode
[profile.dev] [profile.dev]
opt-level = 1 opt-level = 1
# Enable high optimizations for dependencies (incl. Bevy), but not for our code: # Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"] [profile.dev.package."*"]
opt-level = 3 opt-level = 3