diff --git a/build.rs b/build.rs index 0d798ed..9518c8d 100644 --- a/build.rs +++ b/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"))); }