1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! Build script. fn main() -> Result<(), Box<dyn std::error::Error>> { // Embed build information. vergen_gitcl::Emitter::new() .idempotent() .add_instructions( &vergen_gitcl::GitclBuilder::default() .sha(true) // Short .dirty(false) // Ignore untracked files .build()?, )? .emit()?; Ok(()) }