Semantic version bump calculation from conventional commits.
Pure library — computes the next version from a list of parsed conventional commits and bump rules. No I/O, no git operations.
Main entry points
- [
determine_bump] — analyse commits and return the bump level - [
apply_bump] — apply a bump level to a semver version - [
apply_prerelease] — bump with a pre-release tag (e.g.rc.0) - [
replace_version_in_toml] — update the version in aCargo.tomlstring
Example
use ;
let commits = vec!;
let level = determine_bump.unwrap;
assert_eq!;
let current = new;
let next = apply_bump;
assert_eq!;