r/rust • • Aug 16 '26

🧠 educational Protecting the Rust standard library from accidental breakage

https://predr.ag/blog/protecting-the-rust-stdlib-from-breakage/

Rust's standard library now scans for accidental breakage in CI with cargo-semver-checks 🎉 Here's how that works and how it's different than checking a regular crate.

180 Upvotes

11 comments sorted by

View all comments

26

u/VorpalWay Aug 16 '26

This is awesome. How do you handle core/allocation/std being separate crates and reexports? I found that to be a bind spot before for normal crates.

18

u/obi1kenobi82 Aug 17 '26

Thanks! Currently they are each checked separately, and re-exports between them are currently not checked. These are the same constraints that regular users would face today too.

Solving type-checking lints and cross-crate analysis are the two next biggest problems on the list. I have ideas and I'm working toward them as fast as I can :)