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