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
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -1,6 +1,7 @@
fn main() { fn main() {
// Warning: build.rs is not published to crates.io. // 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-cfg=check_cfg");
println!("cargo:rustc-check-cfg=cfg(check_cfg)"); println!("cargo:rustc-check-cfg=cfg(check_cfg)");
println!("cargo:rustc-check-cfg=cfg(exhaustive)"); println!("cargo:rustc-check-cfg=cfg(exhaustive)");