mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-24 18:18:06 +00:00
12 lines
367 B
Rust
12 lines
367 B
Rust
use vergen::{vergen, Config, ShaKind, TimestampKind};
|
|
|
|
fn main() {
|
|
let mut config = Config::default();
|
|
|
|
*config.git_mut().sha_kind_mut() = ShaKind::Short;
|
|
*config.git_mut().commit_timestamp_kind_mut() = TimestampKind::All;
|
|
*config.build_mut().kind_mut() = TimestampKind::All;
|
|
|
|
// ignore error if we can't get the git commit hash
|
|
let _ = vergen(config);
|
|
}
|