Skip to content

building workspaces can't use --features flag #5015

@SamPeng87

Description

@SamPeng87

i define feature in some sub-create

    [features]
    default=["product","dangerous_configuration"]
    dangerous_configuration=[]
    develop=[]
    product=[]

then,execute cargo cargo build --features="develop"

it can't work,only work in sub-create default features selectors.

cargo build --no-default-features --all not work too

Is it a Bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Error and warning messages generated by Cargo itself.A-featuresArea: features — conditional compilationA-workspacesArea: workspacesC-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