From f8e0c4c13339a1149efb987746e218b2f680b6e9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 4 Mar 2018 18:07:11 -0500 Subject: stop trying to be clever with the version stuff it doesn't work right and i don't actually care that much --- build.rs | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 build.rs (limited to 'build.rs') diff --git a/build.rs b/build.rs deleted file mode 100644 index ee9d9e3..0000000 --- a/build.rs +++ /dev/null @@ -1,29 +0,0 @@ -fn main() { - println!("cargo:rustc-env=FANCY_PROMPT_BUILD_GIT_REV={}", git_describe()) -} - -fn git_describe() -> String { - let output = std::process::Command::new("git") - .args(&["describe", "--tags"]) - .output(); - output.and_then(|output| { - if output.status.success() { - Ok( - String::from_utf8_lossy(&output.stdout) - .trim() - .to_string() - ) - } - else { - Err( - std::io::Error::new( - std::io::ErrorKind::Other, - "failed to run git" - ) - ) - } - }).unwrap_or_else(|_err| { - // String::from(format!("{}", _err)) - String::from("???") - }) -} -- cgit v1.2.3-54-g00ecf