From 527fd2cc9e8400c0ba855b0d167b0831a176a7eb Mon Sep 17 00:00:00 2001 From: Lucas Kent Date: Tue, 31 Jan 2023 15:44:45 +1100 Subject: [PATCH] prevent recompiling by properly specifying build.rs --- shotover-proxy/build.rs | 6 ------ test-helpers/build.rs | 1 + tokio-bin-process/build.rs | 1 + 3 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 shotover-proxy/build.rs diff --git a/shotover-proxy/build.rs b/shotover-proxy/build.rs deleted file mode 100644 index cfb768819..000000000 --- a/shotover-proxy/build.rs +++ /dev/null @@ -1,6 +0,0 @@ -use std::env; - -fn main() { - let profile = env::var("PROFILE").unwrap(); - println!("cargo:rustc-env=PROFILE={profile}"); -} diff --git a/test-helpers/build.rs b/test-helpers/build.rs index cfb768819..8472a5ff6 100644 --- a/test-helpers/build.rs +++ b/test-helpers/build.rs @@ -3,4 +3,5 @@ use std::env; fn main() { let profile = env::var("PROFILE").unwrap(); println!("cargo:rustc-env=PROFILE={profile}"); + println!("cargo:rerun-if-env-changed={profile}"); } diff --git a/tokio-bin-process/build.rs b/tokio-bin-process/build.rs index cfb768819..8472a5ff6 100644 --- a/tokio-bin-process/build.rs +++ b/tokio-bin-process/build.rs @@ -3,4 +3,5 @@ use std::env; fn main() { let profile = env::var("PROFILE").unwrap(); println!("cargo:rustc-env=PROFILE={profile}"); + println!("cargo:rerun-if-env-changed={profile}"); }