Expand description
§TagVer core library
Minimalistic version calculation from Git tags, mirroring the original .NET MinVer behavior.
§Quick Start
Get the version for the current Git repository.
use tagver::{calculate_version, Config};
// Use default configuration
let config = Config::default();
// Calculate version from the current directory
let result = calculate_version(".", &config)?;
println!("Calculated version: {}", result);§Strict vs. fallback entry points
calculate_version— requires a real Git repository and errors otherwise.calculate_version_with_fallback— returns the default version when no repository is found.
Re-exports§
pub use config::Config;pub use config::Verbosity;pub use config::VersionPart;pub use error::Result;pub use error::TagVerError;pub use git::Repository;pub use version::Version;
Modules§
- config
- Configuration for TagVer operations.
- error
- Error types for TagVer operations.
- git
- Git repository discovery and traversal functionality.
- tags
- Tag parsing and management functionality.
- version
- Version representation and calculation.
Structs§
- Calculation
Result - Result of a version calculation.
Functions§
- calculate_
version - Calculate the version for the given repository using the TagVer algorithm.
- calculate_
version_ with_ fallback - Calculate the version, falling back to the default version when no repository is found.