Skip to content

Commit e38b55d

Browse files
committed
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.
1 parent d222ddc commit e38b55d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

library/test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
fn main() {
2+
println!("cargo:rerun-if-changed=build.rs");
23
println!("cargo:rustc-check-cfg=cfg(enable_unstable_features)");
34

45
let rustc = std::env::var("RUSTC").unwrap_or_else(|_| "rustc".into());

0 commit comments

Comments
 (0)