cargo-next
A cargo subcommand to set the next version of a crate.
Installation
cargo install cargo-next --locked
Usage
Binary
$ cargo next --minor
$ cargo next 0.1.5
$ ./emits-new-version.sh | cargo next
$ cargo next --get
0.2.3
Library
use ;
let path_to_toml = ...;
// Bump the version by a semver component.
let _res = bump_version;
// Set the version directly.
let _res = set_version;
// Or get the version of a crate.
let _res = get_version;