1 2 3 4 5 6 7 8 9 10 11 12 13
use std::error::Error; use vergen::EmitBuilder; fn main() -> Result<(), Box<dyn Error>> { // Emit the instructions EmitBuilder::builder() .git_sha(true) .build_timestamp() .cargo_features() .cargo_target_triple() .emit()?; Ok(()) }