Expand description
§use-version
Composable version and semver primitives for RustUse.
use-version provides a small typed layer over semantic versions for release planning and policy checks.
§Example
use use_version::{next_minor, parse_version};
let version = parse_version("0.1.0").unwrap();
assert_eq!(next_minor(&version).to_string(), "0.2.0");Composable semantic-version primitives for RustUse.
Structs§
- Version
- A typed semantic version value.
- Version
Error - Errors that can occur while parsing semantic versions.
Enums§
- Release
Level - The release level represented by a version transition.
- Version
Bump - The kind of version bump to apply.
- Version
Policy - A simple version policy marker for RustUse release flows.
Functions§
- compare_
versions - Compares two semantic versions.
- is_
prerelease - Returns
truewhen a version contains prerelease metadata. - next_
major - Returns the next major version.
- next_
minor - Returns the next minor version.
- next_
patch - Returns the next patch version.
- parse_
version - Parses a semantic version string.