Reducing Binary Size
Add this to the Cargo.toml of your project to reduce binary size in release mode.
[profile.release]
codegen-units = 1
lto = true
opt-level = "z"
panic = "abort"
strip = true
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Add this to the Cargo.toml of your project to reduce binary size in release mode.
[profile.release]
codegen-units = 1
lto = true
opt-level = "z"
panic = "abort"
strip = true