Skip to content
Unverified: This page has not yet been anchored to automated code tests.

vox-build-meta API Reference (generated)

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.

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.

FunctionDescription
emitEmit 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.