10 lines
235 B
Rust
10 lines
235 B
Rust
use std::error::Error;
|
|
|
|
use vergen::{vergen, Config, ShaKind};
|
|
|
|
fn main() -> Result<(), Box<dyn Error>> {
|
|
let mut config = Config::default();
|
|
*config.git_mut().sha_kind_mut() = ShaKind::Short;
|
|
vergen(config)?;
|
|
Ok(())
|
|
}
|