Merge pull request #2502 from amaanq/profiles

fix: use opt-level 3 by default, and add a size profile
This commit is contained in:
Amaan Qureshi 2023-08-14 15:53:38 -04:00 committed by GitHub
commit 62e96c9f61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,5 +9,9 @@ rust-version = "1.65"
[profile.release]
strip = true # Automatically strip symbols from the binary.
lto = true # Link-time optimization.
opt-level = "s" # Optimize for speed.
opt-level = 3 # Optimization level 3.
codegen-units = 1 # Maximum size reduction optimizations.
[profile.size]
inherits = "release"
opt-level = "s" # Optimize for size.