From 4ae060c68da5700acd4cec5a8a30551fb92b3c3c Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Mon, 9 Mar 2020 16:38:41 -0400 Subject: [PATCH] Add rerun_except to root crate Cargo is finding more reasons to do unnecessary rebuilds, so I've added the rerun_except crate to its build.rs as well to ignore .asm files before recompiling. Signed-off-by: Alek Ratzloff --- Cargo.lock | 1 + Cargo.toml | 3 +++ build.rs | 7 +++++++ 3 files changed, 11 insertions(+) create mode 100644 build.rs diff --git a/Cargo.lock b/Cargo.lock index 02fdc75..041a007 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -532,6 +532,7 @@ name = "rasp" version = "0.1.0" dependencies = [ "libvm 0.1.0", + "rerun_except 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "snafu 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", "structopt 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/Cargo.toml b/Cargo.toml index ab14faa..9012e20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,3 +10,6 @@ edition = "2018" structopt = "0.3" snafu = "0.6.2" libvm = { path = "src/libvm" } + +[build-dependencies] +rerun_except = "0.1" diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..652470d --- /dev/null +++ b/build.rs @@ -0,0 +1,7 @@ +use rerun_except::rerun_except; + +fn main() { + rerun_except(&[ + "*.asm", + ]).unwrap(); +}