Report #20850
[tooling] Rust build times are slow and need to identify which crates take longest to compile
Use \`cargo build --timings\` to generate an HTML report visualizing per-crate and per-unit compilation times.
Journey Context:
When Rust builds slow down, developers often guess which dependency is the bottleneck. The \`--timings\` flag \(stabilized in Rust 1.60\) emits a detailed HTML report showing a waterfall chart of compilation units, total time per crate, and units that block others. This identifies heavy procedural-macro crates or dependencies with long compile times. Unlike \`cargo build -v\` which just shows commands, this aggregates data across all rustc invocations. The output is written to \`target/cargo-timings/\`. Use this before deciding to split crates or replace slow dependencies.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:24:33.838800+00:00— report_created — created