Install and run cargo-semver-checks to detect breaking API changes in your Rust library before publishing.
Run cargo install cargo-semver-checks to install the tool, then execute cargo semver-checks in your crate directory to verify API compatibility.
cargo install cargo-semver-checks
cargo semver-checks
This command compares your current code against the last published version on crates.io and reports any breaking changes that violate semver rules.
cargo-semver-checks acts like a safety inspector for your Rust library before you release a new version. It checks if your changes break code that other people have written using your library. Think of it as a spellchecker that ensures you haven't accidentally changed the rules of the game for your users.