Files
paste/build.rs
ellotheth e8fac0f0c8 clippy fixes
(i don't know rust, things seem to still work?)
2023-08-18 20:29:08 +05:30

10 lines
269 B
Rust

use std::process::Command;
fn main() {
let output = Command::new("git")
.args(["rev-parse", "HEAD"])
.output()
.unwrap();
let git_hash = String::from_utf8(output.stdout).unwrap();
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
}