Set release flags for 0.19.6 (#5168)

This commit is contained in:
Nutomic 2024-11-06 15:31:04 +01:00 committed by GitHub
parent ad8056a674
commit 87d623cc6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,11 +24,12 @@ doctest = false
[lints]
workspace = true
# See https://github.com/johnthagen/min-sized-rust for additional optimizations
[profile.release]
debug = 0
lto = "thin"
strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
lto = "fat"
opt-level = 3 # Optimize for speed, not size.
codegen-units = 1 # Reduce parallel code generation.
# This profile significantly speeds up build time. If debug info is needed you can comment the line
# out temporarily, but make sure to leave this in the main branch.