release/api-compatibility/rust
A library checks its API against the previous release
Implements release/api-compatibility for rust.
| Severity | info |
| Tiers | 1 |
| Stacks | rust |
| Scope | root |
| Kind | outcome |
| Source | library v0.2.0 |
| Selected by | fleetlint-recommended@v0.2.0 |
Requirement
A crate with a library target runs cargo-semver-checks against the previous release.
Why
A breaking change in a minor release is found by every user at once; the check finds it before the tag.
Applies when
file("src/lib.rs") || text("Cargo.toml").contains("[lib]")Fix
Run cargo semver-checks (or obi1kenobi/cargo-semver-checks-action) before tagging.
Agent instruction: Add the stack’s API compatibility tool to the release workflow, comparing against the latest tag; on a breaking change bump the major version instead of silencing the tool.
See: https://fleetlint.org/baseline/#releases, https://fleetlint.org/stacks/#rust
Generated by fleetlint docs from catalog v0.2.0.