Rust enables the parallel compiler frontend by default on nightly
Brief
Rust nightly now uses the parallel compiler frontend by default as the project gathers real-world feedback before stabilization.
Performance and availability
- The nightly default uses 2 frontend threads; stable Rust continues to use the sequential frontend by default.
- With 8 threads, some single-crate builds were almost 3x faster. On an 8-core machine, end-to-end cargo check of the cargo crate improved by about 15%: from 36.7 seconds with 1 thread to 30.8 seconds with 8.
- Incremental rebuilds showed a mean improvement of 3–5% in the benchmark suite; results vary by workload.
Configuration and caveats
- Set the thread count with --jobs-frontend via RUSTFLAGS or .cargo/config.toml; use --jobs-frontend=1 to opt out on nightly.
- More threads can increase compiler memory use, and diagnostic ordering may be nondeterministic. Some reproducibility problems are known and being investigated.
Generated by AI from the original article. Check the source for full details.