diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-03-05 21:23:21 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-03-05 21:23:21 +0100 |
| commit | 653b797aa68f8ec3a065909cff693327574fce91 (patch) | |
| tree | 13a69d25849e34c8387da08ab1210187b422e462 | |
| parent | de7ddbe322b615eeeba17730486da4b9d024ebe2 (diff) | |
| download | sylt-653b797aa68f8ec3a065909cff693327574fce91.tar.gz | |
remove unused build.rs
| -rw-r--r-- | build.rs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/build.rs b/build.rs deleted file mode 100644 index 92b63ab..0000000 --- a/build.rs +++ /dev/null @@ -1,28 +0,0 @@ -use std::path::{Path, PathBuf}; - -fn find_tests(directory: &Path) -> Vec<PathBuf> { - let mut tests = Vec::new(); - - for entry in std::fs::read_dir(directory).unwrap() { - let path = entry.unwrap().path(); - - if path.file_name().unwrap().to_str().unwrap().starts_with("_") { - continue; - } - - if path.is_dir() { - tests.append(&mut find_tests(&path)); - } else { - assert!(!path.to_str().unwrap().contains(","), "You should be ashamed."); - tests.push(path); - } - } - - tests -} - -fn main() { - let tests = find_tests(Path::new("progs/")); - let files = tests.iter().fold(String::new(), |a, b| format!("{},{}", a, b.display())); - println!("cargo:rustc-env=SCRIPTS={}", &files[1..]); -} |
