Expand description
Semantic Versioning Management
Calculates the next semantic version number and level based on the current version number and the conventional commits made since the last version has been released.
Usage
Add the dependency to Cargo.toml
[dependencies]
nextsv = "0.7.9"
use nextsv::VersionCalculator;
let version_prefix = "v"; // Identifies a version tag
let latest_version = VersionCalculator::new(version_prefix)?;
let (next_version, next_level) = latest_version.walk_commits()?.next_version();
println!("Next Version: {}\nNext Level: {}", next_version, next_level);
Structs
The Semantic data structure represents a semantic version number.
VersionCalculator
Enums
The error type for nextsv.
The options for choosing the level of a forced change
Level at which the next increment will be made
TypeHierarchy maps the types identified by git_conventional to a hierarchy of levels