Skip to content

Commit

Permalink
Skip rerunning build script on library code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 9, 2024
1 parent b4f1bc1 commit 3202a68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions serde_derive/build.rs
Original file line number Diff line number Diff line change
@@ -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)");
Expand Down

0 comments on commit 3202a68

Please sign in to comment.