-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add default features for each [[bin]] #10409
Copy link
Copy link
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`
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`
Type
Fields
Give feedbackNo fields configured for issues without a type.
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-featuresto the [[bin]] sections inCargo.toml.Both the
dependencies.defaultand this new key would be applied. If--no-default-featuresis passed, both declarations are ignored.Notes
No response