| Crates.io | git-describe |
| lib.rs | git-describe |
| version | 0.1.2 |
| created_at | 2025-10-01 23:10:59.054065+00 |
| updated_at | 2025-10-01 23:19:49.756155+00 |
| description | A Rust library to inject and parse git version information at build time |
| homepage | |
| repository | https://github.com/ryankurte/rust-git-describe |
| max_upload_size | |
| id | 1863625 |
| size | 17,949 |
A library to fetch and export git version information during the build process
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();