35565d07c2
- added `COMMIT_HASH` const - updated core library
7 lines
223 B
Rust
7 lines
223 B
Rust
use std::process::Command;
|
|
|
|
fn main() {
|
|
let output = Command::new("git").args(&["rev-parse", "HEAD"]).output().unwrap();
|
|
|
|
println!("cargo:rustc-env=GIT_COMMIT_HASH={}", String::from_utf8(output.stdout).unwrap());
|
|
}
|