[−][src]Function vergen::generate_cargo_keys
pub fn generate_cargo_keys(flags: ConstantsFlags) -> Fallible<()>
Generate the cargo:
key output
The keys that can be generated include:
cargo:rustc-env=<key>=<value>
where key/value pairs are controlled by the suppliedConstantsFlags
.cargo:rustc-rerun-if-changed=.git/HEAD
cargo:rustc-rerun-if-changed=<file .git/HEAD points to>
Example build.rs
extern crate vergen; use vergen::{ConstantsFlags, generate_cargo_keys}; fn main() { generate_cargo_keys(ConstantsFlags::all()).expect("Unable to generate cargo keys!"); }