-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed as not planned
Labels
A-cargo-targetsArea: selection and definition of targets (lib, bins, examples, tests, benches)Area: selection and definition of targets (lib, bins, examples, tests, benches)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
Problem
When adding [[bin]] entries to a Cargo.toml
, you can specify required dependencies, but not additional "recommended", default features.
Proposed Solution
Add a key, namely default-features
to the [[bin]] sections in Cargo.toml
.
Both the dependencies.default
and this new key would be applied. If --no-default-features
is passed, both declarations are ignored.
Notes
No response
mverleg, paul-hansen, connorskees, felipelalli, dheijl and 2 more
Metadata
Metadata
Assignees
Labels
A-cargo-targetsArea: selection and definition of targets (lib, bins, examples, tests, benches)Area: selection and definition of targets (lib, bins, examples, tests, benches)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`