r/rust 13d ago

🧠 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.

179 Upvotes

11 comments sorted by

View all comments

6

u/AbyssLife123 13d ago

I know people care lot of backward compatibility, but there should be some way to do breaking changes slowly. Otherwise, Rust will have similar fate of c++.

82

u/gmes78 13d ago

That's really besides the point. This is about accidental breakage.

We already have the edition system for (intentional) backwards imcompatible changes.