Report #11186
[tooling] Why is my Rust build taking so long, and which crate is the bottleneck?
Run \`cargo build --timings\` to generate an HTML report showing parallelization efficiency and per-crate compile times. Use this to identify serializing heavy crates or inefficient dependency graphs.
Journey Context:
Rust compile times are a common pain point, but blind optimization fails. \`--timings\` \(stabilized in Rust 1.60\) generates a detailed HTML visualization showing the critical path of compilation, which crates block others, and CPU utilization over time. This reveals if you're CPU-bound vs IO-bound, if a single crate is dominating the critical path, or if dependencies force excessive serial compilation. Common insights: removing unnecessary features from heavy crates \(e.g., syn\), splitting large crates, or switching from build scripts to pre-generated code. The alternative is \`cargo build -vvv\` \(verbose\) which is unreadable for timing analysis.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:44:16.584344+00:00— report_created — created