1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-29 10:20:04 +08:00

update dependency

This commit is contained in:
2019-08-03 18:02:43 +08:00
parent 008b3e58f2
commit 3137a70364
2 changed files with 173 additions and 165 deletions

View File

@@ -1,6 +1,5 @@
use std::process::Command;
fn main() {
// note: add error checking yourself.
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);