diff --git a/Cargo.lock b/Cargo.lock index 190a80e1..ea229e46 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -16,6 +16,7 @@ name = "amber" version = "0.3.4-alpha" dependencies = [ "assert_cmd", + "build-helper", "chrono", "clap", "colored", @@ -137,6 +138,15 @@ dependencies = [ "serde", ] +[[package]] +name = "build-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdce191bf3fa4995ce948c8c83b4640a1745457a149e73c6db75b4ffe36aad5f" +dependencies = [ + "semver", +] + [[package]] name = "bumpalo" version = "3.16.0" @@ -549,6 +559,21 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "semver" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a3186ec9e65071a2095434b1f5bb24838d4e8e130f584c790f6033c79943537" +dependencies = [ + "semver-parser", +] + +[[package]] +name = "semver-parser" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" + [[package]] name = "serde" version = "1.0.203" diff --git a/Cargo.toml b/Cargo.toml index 3e451e94..4e9ef4b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,3 +56,6 @@ targets = [ pr-run-mode = "skip" # Allow modifying release.yml allow-dirty = ["ci"] + +[build-dependencies] +build-helper = "0.1.1" diff --git a/build.rs b/build.rs new file mode 100644 index 00000000..c96fa0df --- /dev/null +++ b/build.rs @@ -0,0 +1,3 @@ +fn main() { + build_helper::rerun_if_changed("src/tests/**"); +}