Crate tagver

Crate tagver 

Source
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

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§

CalculationResult
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.