cargo-manifest
Rust Optimization and debug information
Tune optimization and debug symbols independently. Debug information can help diagnose optimized programs, with artifact-size tradeoffs. Example format: toml. Run in a disposable copy of v16/fixtures/projects/profile-demo. Expected result (not executed): After adding to the lab manifest, cargo build --release uses the declared settings. Common mistake: Assuming debug symbols turn off optimization.
Formal Syntax & Structure
rust syntaxrust
[profile.release]Working Example
Example Snippetrust
[profile.release]opt-level = 2debug = 1