Skip to content

Commit

Permalink
Cargo: don't let feature "static" pull xenstore-rs unless "xenstore" …
Browse files Browse the repository at this point in the history
…is set

The syntax used was equivalent to "dep:xenstore-rs/static", and a bug in
Rust 1.70 (fixed by rust-lang/cargo#12130 in 1.71)
was triggered.
  • Loading branch information
ydirson committed Feb 2, 2024
1 parent fa5d664 commit 5343f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 5343f69

Please sign in to comment.