Skip to content

Add default features for each [[bin]] #10409

@Icelk

Description

@Icelk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cargo-targetsArea: selection and definition of targets (lib, bins, examples, tests, benches)A-featuresArea: features — conditional compilationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions