Skip to content

Commit

Permalink
resolve unexpected_cfg warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed May 14, 2024
1 parent 50dfa7a commit c84a312
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ use std::{env, process::Command, str};
// opening a GitHub issue if your build environment requires some way to enable
// these cfgs other than by executing our build script.
fn main() {
// Required by Rust 1.79+.
println!("cargo:rustc-check-cfg=cfg(doc_cfg)");
println!("cargo:rustc-check-cfg=cfg(path_buf_deref_mut)");
println!("cargo:rustc-check-cfg=cfg(path_buf_capacity)");
println!("cargo:rustc-check-cfg=cfg(shrink_to)");
println!("cargo:rustc-check-cfg=cfg(try_reserve_2)");

let compiler = match rustc_version() {
Some(compiler) => compiler,
None => return,
Expand Down

0 comments on commit c84a312

Please sign in to comment.