1[profile.release]2opt-level = 'z' # Optimize for size3lto = true # Enable link-time optimization4codegen-units = 1 # Reduce number of codegen units to increase optimizations5panic = 'abort' # Abort on panic6strip = true # Strip symbols from binary*
Article title:reduce-exe-size
Article author:Julyfun
Release time:Jan 15, 2024
Original link:https://how-to.fun/blog/langs/rust/reduce-exe-size
Copyright 2025
Sitemap