vox-build-meta API Reference (generated)
vox-build-meta
Section titled “vox-build-meta”Crate: vox-build-meta · Version: 0.6.0 · Target: Library (lib.rs)
Build-time helper that emits VOX_BUILD_NUMBER and VOX_GIT_HASH. Add to [build-dependencies] and call vox_build_meta::emit() from build.rs.
Crate Overview
Section titled “Crate Overview”Build-time metadata injection — call [emit] from any build.rs.
Emits two cargo:rustc-env lines that downstream crates can consume with
env!():
VOX_BUILD_NUMBER— git commit count on HEAD, auto-increments on every merge.VOX_GIT_HASH— short SHA for diagnostics; never used in version comparison.
The full display string produced by binaries is:
{CARGO_PKG_VERSION}+build.{VOX_BUILD_NUMBER} ({VOX_GIT_HASH})This crate has no runtime dependencies — it must only be used as a
[build-dependencies] entry.
Public API Surface
Section titled “Public API Surface”Functions
Section titled “Functions”| Function | Description |
|---|---|
emit | Emit version metadata cargo:rustc-env vars from a build script. Call this once from build.rs. Each binary’s build script may add its own cargo:rerun-if-changed lines after this call. |