how to

reduce-exe-size

Jan 15, 2024
langsrust
1 Minutes
42 Words
1
[profile.release]
2
opt-level = 'z' # Optimize for size
3
lto = true # Enable link-time optimization
4
codegen-units = 1 # Reduce number of codegen units to increase optimizations
5
panic = 'abort' # Abort on panic
6
strip = true # Strip symbols from binary*
Article title:reduce-exe-size
Article author:Julyfun
Release time:Jan 15, 2024
Copyright 2025
Sitemap