Policies
Versions
Every release is exactly 0.0.1 above the previous one; 0.1.0 comes only after 0.0.999. Releases are tagged v<version> from main, signed, and published to crates.io by trusted publishing.
Breaking changes
Every 0.0.x bump is a major version to Cargo, so Cargo's own rules allow anything. petitcarnets holds itself to more: scripts/semver-gate.sh compares the public API with the last release under patch rules, and a breaking change passes CI only when that version's CHANGELOG section declares it with a - Breaking: entry and a migration note.
Deprecation window
A renamed or replaced item keeps working for one release, marked #[deprecated] with the new name in its note, and is removed in the next (0.0.9's Style::fg and the rest go in 0.0.10).
Output stability
The bytes a program writes to the terminal are part of the contract, as much as the API: a change to them is a CHANGELOG entry even when no signature moves. The bytes-per-frame gate (scripts/bench/expected.tsv) and the golden files (tests/golden/) catch such a change; updating either is a reviewed change with its reason in the commit.
Minimum Rust version
Rust 1.85, the first release with edition 2024, tested in CI on Linux and macOS beside stable. Raising it is a breaking change, declared in the CHANGELOG with the reason (a language or standard library feature the crate needs), and never done in a release for its own sake.
Dependencies
None, by design (ADR 0001). The No dependencies CI job fails if cargo tree prints anything but the crate.