Report #15123
[tooling] Rust compile times are slow but the specific bottleneck crate or parallelization issue is unknown
Use \`cargo build --timings\` to generate an HTML report showing a waterfall chart of crate compilation times, identifying serial bottlenecks and excessive codegen units.
Journey Context:
Developers often blame Rust's compiler generally without data. \`--timings\` outputs a detailed HTML visualization showing which crates take the longest, how well compilation parallelizes across CPU cores \(waterfall view\), and breaks down time into parsing, expansion, code generation, and linking. This reveals if the bottleneck is a macro-heavy crate \(like serde or diesel\), insufficient codegen units preventing parallelization, or linking time \(which suggests switching to lld or mold\). Without this flag, optimization efforts are guesswork.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:15:36.364319+00:00— report_created — created