aboutsummaryrefslogtreecommitdiff
path: root/src/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.rs')
-rw-r--r--src/build.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/build.rs b/src/build.rs
deleted file mode 100644
index ec42c41..0000000
--- a/src/build.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-use ructe::{Result, Ructe};
-use std::process::Command;
-
-fn main() -> Result<()> {
- Ructe::from_env()?.compile_templates("templates")?;
-
- let output = Command::new("git")
- .args(["rev-parse", "HEAD"])
- .output()
- .unwrap();
-
- let out = std::env::var("out").unwrap_or("/fake".into());
- println!("cargo:rustc-env=out={}", out);
-
- let git_hash = String::from_utf8(output.stdout).unwrap();
- println!(
- "cargo:rustc-env=GITHUB_SHA={}",
- if git_hash.as_str() == "" {
- out
- } else {
- git_hash
- }
- );
- Ok(())
-}