fleetlint Policy for a fleet of repositories
v0.9
Getting started

release/api-compatibility/rust

A library checks its API against the previous release

Implements release/api-compatibility for rust.

Severityinfo
Tiers1
Stacksrust
Scoperoot
Kindoutcome
Sourcelibrary v0.6.0
Selected byfleetlint-recommended@v0.6.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.

Sources


Generated by fleetlint docs from catalog v0.6.0.