Report #100147
[tooling] Rust iteration cycles are dominated by full release builds
Run cargo check instead of cargo build for type checking, and reserve cargo build --release only for benchmarks or shipping. Use cargo build/run --features x to skip unrelated heavy crates.
Journey Context:
cargo build --release enables opt-level 3 and LTO by default, which can be 10-100x slower than dev builds. For edit-compile-test loops, cargo check is fastest because it stops after analysis without generating code. A frequent mistake is enabling all features in development; split optional behavior with features so the compiler only processes code paths you actually need. For final binaries, use profile settings like lto = "thin" to trade a little performance for much faster release builds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T04:44:00.946575+00:00— report_created — created