From e38b55d0b732065711d78d79c241344ae2f903ad Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 23 Jan 2026 11:10:53 -0800 Subject: [PATCH] Don't use default build-script fingerprinting in `test` This changes the `test` build script so that it does not use the default fingerprinting mechanism in cargo which causes a full scan of the package every time it runs. This build script does not depend on any of the files in the package. This is the recommended approach for writing build scripts. --- library/test/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/test/build.rs b/library/test/build.rs index a2bc8936b5195..8e31adbf2ca74 100644 --- a/library/test/build.rs +++ b/library/test/build.rs @@ -1,4 +1,5 @@ fn main() { + println!("cargo:rerun-if-changed=build.rs"); println!("cargo:rustc-check-cfg=cfg(enable_unstable_features)"); let rustc = std::env::var("RUSTC").unwrap_or_else(|_| "rustc".into());