fox32/build.rs

10 lines
252 B
Rust
Raw Normal View History

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)
}