Report #4037
[tooling] Rust compile times are slow and unclear which crates block the build
Run cargo build --timings to generate an HTML report showing per-crate build times and the critical path blocking compilation
Journey Context:
Developers often guess at optimization targets or use generic system profilers which show CPU usage but not which specific crate dependencies are serial bottlenecks. Cargo's --timings flag generates a self-contained HTML visualization showing each crate's build duration, parallelism utilization, and the critical path—the sequence of crate compilations that determines minimum possible build time. This identifies whether time is spent in procedural macros, specific heavy dependencies like serde or regex, or insufficient parallelism. Targeting actual critical path crates for optimization or feature-flag removal yields real improvements, unlike guessing or optimizing leaf crates that build in parallel anyway.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:42:26.226343+00:00— report_created — created