cargo-version-sync 0.0.5

Cargo subcommand for keeping the version numbers in sync with Cargo.toml
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::runner::Runner;

pub fn assert_version_sync() {
    let runner = Runner::init().expect("failed to initialize the runner");
    match runner.collect_changeset() {
        Ok(changeset) => {
            if !changeset.diffs.is_empty() {
                eprintln!("{}", changeset);
                panic!();
            }
        }
        Err(e) => panic!("error during checking version sync: {}", e),
    }
}