Report #62434
[tooling] Rust build is slow but unclear which crate is the bottleneck
Run cargo build --timings \(or check --timings\). This generates an HTML report at target/cargo-timings/cargo-timing.html showing a Gantt chart of build duration per crate and parallelism utilization.
Journey Context:
Blindly optimizing Rust build times often leads to micro-optimizing the wrong crates or adding unnecessary feature flags. The --timings flag \(stable since Rust 1.60\) reveals the actual critical path: which crates block others, where parallelism is lost due to dependency chains, and whether dev-dependencies are being compiled unnecessarily for the current target. This data drives decisions on splitting crates, enabling sparse registry protocols, or switching to faster-linking backends like mold or lld.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:16:55.828877+00:00— report_created — created