From 30df4e1323a5cd1fca027d8c78951c79f79a8e71 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 11 Oct 2024 10:54:53 +0100 Subject: [PATCH] build.rs: Suppress new cargo features warning Signed-off-by: Ian Jackson --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index 299a286..78dee7a 100644 --- a/build.rs +++ b/build.rs @@ -53,6 +53,7 @@ impl Context<'_> { let cfg = test.replace('.', "_").replace(">=", "ge_"); let test: semver::VersionReq = test.parse().unwrap(); let cfg = format!("{package}_{cfg}"); + println!(r#"cargo:rustc-check-cfg=cfg({cfg})"#); if test.matches(&pkg) { println!("cargo:rustc-cfg={cfg}"); } -- 2.30.2