This commit is contained in:
2021-08-20 22:59:19 +02:00
commit 8c60120549
5 changed files with 2285 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
use std::process::Command;
use std::str;
fn main() {
let desc_c = Command::new("git").args(&["describe", "--all", "--long"]).output().unwrap();
let desc = unsafe {
str::from_utf8_unchecked( &desc_c.stdout )
};
println!("cargo:rustc-env=GIT_REV={}", desc);
}