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] [lints]
workspace = true workspace = true
# See https://github.com/johnthagen/min-sized-rust for additional optimizations
[profile.release] [profile.release]
debug = 0 debug = 0
lto = "thin" lto = "fat"
strip = true # Automatically strip symbols from the binary. opt-level = 3 # Optimize for speed, not size.
opt-level = "z" # Optimize for 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 # 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. # out temporarily, but make sure to leave this in the main branch.