chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
284f268
)
build.rs: Suppress new cargo features warning
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 11 Oct 2024 09:54:53 +0000
(10:54 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 11 Oct 2024 09:54:53 +0000
(10:54 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
build.rs
patch
|
blob
|
history
diff --git
a/build.rs
b/build.rs
index 299a2862384f89ec47b9d0156680fc58abe5537b..78dee7a500fa36676173f5e01badf4ed19c3f31a 100644
(file)
--- 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}");
}