1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-27 17:20:06 +08:00

update build.rs

This commit is contained in:
2019-08-21 01:07:26 +08:00
parent 319200af6a
commit b2f75a81a6

View File

@@ -1,4 +1,5 @@
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();