rust-release-profile
Installation
SKILL.md
Release Profile
Optimize Rust builds for production performance and binary size.
Production Cargo.toml Profile
[profile.release]
opt-level = 3 # Maximum optimization
lto = true # Link-time optimization (slower build, faster binary)
codegen-units = 1 # Single codegen unit (better optimization)
strip = true # Strip debug symbols
panic = 'abort' # Smaller binary, no unwinding
[profile.release-with-debug]
inherits = "release"
debug = true # Keep debug info for profiling
strip = false