diff options
| author | Philipp A | 2019-12-07 17:28:13 +0100 |
|---|---|---|
| committer | Philipp A | 2019-12-07 17:28:13 +0100 |
| commit | ec53e5420b41725a14b9bf0fc5d89e90bcfb882d (patch) | |
| tree | 01df1e02613143c641db485ffd27dff31a79f32a /build.rs | |
| parent | bcb2ef27cb6cf46641e9c1c72aa0eb3d8322b312 (diff) | |
| download | rust-rst-ec53e5420b41725a14b9bf0fc5d89e90bcfb882d.tar.bz2 | |
On second thought let’s not overcomplicate things
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/build.rs b/build.rs deleted file mode 100644 index 88b6214..0000000 --- a/build.rs +++ /dev/null @@ -1,22 +0,0 @@ - -use std::env; -use std::io::{self, Write}; -use std::path::Path; -use std::process::Command; - -fn main() { - let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); - - let input = Path::new(&manifest_dir).join("build_tests.py"); - let output = Path::new(&env::var("OUT_DIR").unwrap()).join("html_tests.rs"); - println!("cargo:rerun-if-changed={}", input.display()); - - let output = Command::new("python3") - .arg("build_tests.py") - .arg(format!("{}", output.display())) - .output() - .expect("failed to execute process"); - io::stdout().write_all(&output.stdout).unwrap(); - io::stderr().write_all(&output.stderr).unwrap(); - assert!(output.status.success()); -} |
