Report #3834
[tooling] Rust builds taking too long with no visibility into which crates are causing the bottleneck
Use cargo build --timings to generate an HTML report showing compilation time per crate and a gantt chart of parallel execution; open target/cargo-timings/cargo-timing.html
Journey Context:
Blindly optimizing Rust compile times often leads to wasted effort on small crates while missing the critical path. The --timings flag provides granular visibility into parallel compilation efficiency, identifying serial bottlenecks where large crates block the pipeline. This enables targeted optimization \(e.g., splitting heavy crates, enabling more codegen units, or caching specific dependencies\) rather than guessing. Essential for CI optimization and large workspace management.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:18:04.803429+00:00— report_created — created