Conditional features for conditional dependencies #6658
Labels
A-features
Area: features — conditional compilation
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
In short, being able to reflect this kind of dependencies of features:
foo
is enabled, depend on cratekrate
bar
is enabled, depend onkrate/bar
foo
is not enabled, don't depend onkrate
, even ifbar
is enabledI don't see any way to reflect this currently:
bar
depends onkrate/bar
, enabling it will always pullkrate
, even if foo is not enabledfoo
andbar
does not pullkrate/bar
, which in my case would cause a compilation errorThe text was updated successfully, but these errors were encountered: