-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
A-featuresArea: features — conditional compilationArea: features — conditional compilationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Description
For example lets say we use
[dependencies.serde]
version = "0.8.*"
optional = true
default-features = false
and we want to use the std feature of serde if it is used.
[features]
std = ["serde/std"]
But now if someone wants to use our std feature serde WILL be imported. If I would want to represent this I would write
[features]
std = ["serde", "serde/std"]
Right now it's impossible to use a feature of an optional dependency from an own feature without forcing it to be used.
RalfJung, Boscop, jonhoo, olvyko, raftario and 7 moreRobbepop
Metadata
Metadata
Assignees
Labels
A-featuresArea: features — conditional compilationArea: features — conditional compilationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`