10 lines
252 B
Rust
10 lines
252 B
Rust
use anyhow::Result;
|
|
use vergen::{Config, ShaKind, vergen};
|
|
|
|
fn main() -> Result<()> {
|
|
let mut config = Config::default();
|
|
*config.git_mut().sha_kind_mut() = ShaKind::Short;
|
|
*config.git_mut().skip_if_error_mut() = true;
|
|
vergen(config)
|
|
}
|