pinnacle/build.rs
2024-08-05 18:37:05 -05:00

30 lines
812 B
Rust

use vergen_gitcl::{CargoBuilder, Emitter, GitclBuilder, RustcBuilder, SysinfoBuilder};
fn main() {
let cargo = CargoBuilder::default()
.debug(true)
.target_triple(true)
.build()
.unwrap();
let git = GitclBuilder::default()
.sha(true)
.branch(true)
.commit_message(true)
.dirty(false)
.build()
.unwrap();
let rustc = RustcBuilder::default().semver(true).build().unwrap();
let sysinfo = SysinfoBuilder::default().os_version(true).build().unwrap();
Emitter::default()
.add_instructions(&cargo)
.unwrap()
.add_instructions(&git)
.unwrap()
.add_instructions(&rustc)
.unwrap()
.add_instructions(&sysinfo)
.unwrap()
.emit()
.unwrap();
}