Module version

Module version 

Source
Expand description

Version comparison utility for git describe format version strings.

Supports comparing versions like:

  • v0.9.46 (tagged releases)
  • v0.9.46-5-gabc123 (development builds with commits ahead)
  • v0.9.46-5-gabc123-dirty (dirty working tree)

When versions contain different git hashes, GitHub API is used to check ancestry relationships. The API client is created internally with no authentication for public repository access.

Structs§

CompareResponse 🔒
Response from GitHub’s compare API.
GitVersion
A parsed git describe version string.

Enums§

VersionComparison
Result of comparing two versions.
VersionError
Errors that can occur during version parsing or comparison.

Functions§

check_ancestry 🔒
Checks commit ancestry using GitHub’s compare API.
compare_semver
Compares semantic versions (major, minor, patch) between two versions.
get_current_version
Returns the current application version from compile-time environment.
parse_semver 🔒