pinnacle/build.rs

31 lines
812 B
Rust
Raw Permalink Normal View History

2024-08-06 01:37:05 +02:00
use vergen_gitcl::{CargoBuilder, Emitter, GitclBuilder, RustcBuilder, SysinfoBuilder};
2024-05-08 05:30:48 +02:00
fn main() {
2024-08-06 01:37:05 +02:00
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()
2024-05-08 05:30:48 +02:00
.emit()
.unwrap();
}