anime-launcher-sdk/build.rs
Observer KRypt0n_ 35565d07c2
0.3.1
- added `COMMIT_HASH` const
- updated core library
2023-03-06 20:18:23 +02:00

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());
}