{"id":57623,"library":"vergen","title":"Vergen","description":"Generate 'cargo:rustc-env' instructions via 'build.rs' for use in your code via the 'env!' macro.","status":"active","version":"10.0.0","language":"rust","source_language":null,"source_url":"https://github.com/rustyhorde/vergen","tags":["build","git","environment","cargo","metadata"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nvergen = \"10.0.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add vergen","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"EmitBuilder","correct":"use vergen::EmitBuilder;"}],"quickstart":{"code":"use vergen::EmitBuilder;\n\nfn main() {\n    EmitBuilder::builder()\n        .all_build()\n        .all_git()\n        .emit()\n        .unwrap();\n}","lang":"rust","description":"Generate build-time environment variables in build.rs."},"warnings":[{"fix":"Ensure git is installed and available, or disable git features.","message":"Requires git in PATH to emit git-related variables; otherwise fails silently or with errors.","severity":"gotcha","affected_versions":">=8.0.0"}],"env_vars":null,"search_vec":"'build':19 'build.rs':9 'cargo':3,22 'code':14 'env':6,17 'environ':21 'generat':2 'git':20 'instruct':7 'macro':18 'metadata':23 'rustc':5 'rustc-env':4 'use':11 'vergen':1 'via':8,15","created_at":"2026-06-16T15:51:05.595445+00:00","updated_at":"2026-06-16T15:51:05.595445+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/rustyhorde/vergen","github":"https://github.com/rustyhorde/vergen","docs":"https://docs.rs/vergen/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["build-tool","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}