Skip rerunning build script on library code changes

This commit is contained in:
David Tolnay
2024-05-08 21:59:41 -07:00
parent b4f1bc16ff
commit 3202a6858a
+1
View File
@@ -1,6 +1,7 @@
fn main() {
// Warning: build.rs is not published to crates.io.
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-cfg=check_cfg");
println!("cargo:rustc-check-cfg=cfg(check_cfg)");
println!("cargo:rustc-check-cfg=cfg(exhaustive)");