From: Ian Jackson Date: Fri, 11 Oct 2024 09:54:53 +0000 (+0100) Subject: build.rs: Suppress new cargo features warning X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=30df4e1323a5cd1fca027d8c78951c79f79a8e71;p=hippotat.git build.rs: Suppress new cargo features warning Signed-off-by: Ian Jackson --- 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}"); }