Registry / build-tool / vergen

vergen

JSON →
library10.0.0rscratesunverified

Generate 'cargo:rustc-env' instructions via 'build.rs' for use in your code via the 'env!' macro.

# Cargo.toml [dependencies] vergen = "10.0.0"
INSTALL
IMPORT
SIG · VERGEN
V
vergen
build-toolrustv10.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EmitBuilder
use vergen::EmitBuilder;

Generate build-time environment variables in build.rs.

use vergen::EmitBuilder; fn main() { EmitBuilder::builder() .all_build() .all_git() .emit() .unwrap(); }
Debug
Known issues
gotchaRequires git in PATH to emit git-related variables; otherwise fails silently or with errors.
fix
Ensure git is installed and available, or disable git features.
affects: >=8.0.0
Upgrade
Version history
10.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
26
OpenAI (training)
1
Resources
vergen — cargo add vergen · libregistry