cargo-ratchet 0.1.0

Prevent resolved versions in Cargo.lock from regressing below a committed, self-advancing baseline
Documentation
//! Prevent resolved versions in `Cargo.lock` from regressing below a
//! committed baseline that only ratchets up.
//!
//! The binary (`cargo ratchet`) is a thin wrapper over this library. Embed
//! the library when you want the same check inside another tool:
//!
//! - [`compute_violations`] is the pure comparison: two parsed lockfiles in,
//!   violations out.
//! - [`check_and_advance`] adds the file orchestration: compare, and copy the
//!   lockfile over the baseline on a passing check.
//! - [`check_fail_on_change`] is the read-only CI variant: pass only when the
//!   baseline is byte-identical to the lockfile.

mod check_and_advance;
mod check_fail_on_change;
mod compute_violations;
mod ratchet_paths;
mod violation;

pub use check_and_advance::check_and_advance;
pub use check_fail_on_change::check_fail_on_change;
pub use compute_violations::compute_violations;
pub use ratchet_paths::RatchetPaths;
pub use violation::Violation;