standard-version
Version bump calculation from conventional commits — supports semver and calendar versioning (calver).
Also provides the VersionFile trait for ecosystem-specific
version file detection and updating (Cargo.toml, package.json,
pyproject.toml, pubspec.yaml, gradle.properties, VERSION).
Entry points
determine_bump— analyse commits and return the bump levelapply_bump— apply a bump level to a semver versionapply_prerelease— bump with a pre-release tag (e.g.rc.0)replace_version_in_toml— update the version in a TOML stringupdate_version_files— detect and update version filescalver::next_version— compute next calver version from date
Example
use ;
let commits = vec!;
let level = determine_bump.unwrap;
assert_eq!;
let current = new;
let next = apply_bump;
assert_eq!;
Part of git-std
This crate is one of four libraries powering git-std, a single binary for conventional commits, versioning, changelog, and git hooks.
License
MIT