From 5343f6903fe28566c12a943f2c45c9912f09a6b2 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Fri, 2 Feb 2024 17:32:34 +0100 Subject: [PATCH] Cargo: don't let feature "static" pull xenstore-rs unless "xenstore" is set The syntax used was equivalent to "dep:xenstore-rs/static", and a bug in Rust 1.70 (fixed by https://github.com/rust-lang/cargo/pull/12130 in 1.71) was triggered. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7ce215b..fa119c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,7 @@ sysctl = "0.5.0" [features] default = ["xenstore", "net_netlink"] xenstore = ["dep:xenstore-rs"] -static = ["xenstore-rs/static"] +static = ["xenstore-rs?/static"] net_netlink = ["dep:netlink-proto", "dep:netlink-packet-core", "dep:netlink-packet-route", "dep:rtnetlink"] net_pnet = ["dep:pnet_datalink", "dep:pnet_base", "dep:ipnetwork"]