Skip to content

Commit

Permalink
Merge pull request #73 from dtolnay/checkcfg
Browse files Browse the repository at this point in the history
Resolve unexpected_cfgs warning
  • Loading branch information
dtolnay committed May 7, 2024
2 parents 096eac9 + c240656 commit 1321404
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.rs
@@ -1,5 +1,9 @@
fn main() {
println!("cargo:rerun-if-changed=build.rs");

println!("cargo:rustc-check-cfg=cfg(exhaustive)");
println!("cargo:rustc-check-cfg=cfg(prettyplease_debug)");
println!("cargo:rustc-check-cfg=cfg(prettyplease_debug_indent)");

println!(concat!("cargo:VERSION=", env!("CARGO_PKG_VERSION")));
}

0 comments on commit 1321404

Please sign in to comment.