Cargo's Build Dir Shakeup: Test v2 Before It Hits Your Pipeline
Your cargo test just exploded thanks to -Zbuild-dir-new-layout. Cargo's rewriting its internals, and they're begging for your pain points before it goes default.
⚡ Key Takeaways
- Cargo's build dir v2 scopes artifacts by package/hash for cleaner, faster builds and unblocks workspace caching. 𝕏
- Test now with -Zbuild-dir-new-layout—expect tool breakage, report to save your pipeline. 𝕏
- Big wins ahead: granular locks, stale cleanup, but tooling maintainers face short-term pain. 𝕏
Worth sharing?
Get the best Open Source stories of the week in your inbox — no noise, no spam.
Originally reported by Rust Blog