git-describe

Crates.iogit-describe
lib.rsgit-describe
version0.1.2
created_at2025-10-01 23:10:59.054065+00
updated_at2025-10-01 23:19:49.756155+00
descriptionA Rust library to inject and parse git version information at build time
homepage
repositoryhttps://github.com/ryankurte/rust-git-describe
max_upload_size
id1863625
size17,949
ryan (ryankurte)

documentation

README

git-describe

A library to fetch and export git version information during the build process

Usage

Load and export the variable from build.rs:

// Export the current git describe version string to an environmental variable
git_describe::export_version(".");

Use the variable elsewhere within the package:

// Fetch the version from the environmental variable
let version = git_describe::get_version();
Commit count: 0

cargo fmt