cargo-manifest
Rust LTO and code generation units
Tune cross-unit optimization and compilation partitioning. Thin LTO is a choice to evaluate, not an unconditional performance improvement. Example format: toml. Run in a disposable copy of v16/fixtures/projects/profile-demo. Expected result (not executed): A release build uses the selected settings; timing is not predicted. Common mistake: Assuming fewer codegen units always improve runtime.
Formal Syntax & Structure
rust syntaxrust
[profile.release]Working Example
Example Snippetrust
[profile.release]lto = "thin"codegen-units = 4