Skip to content

Allow using crate features that only exist in an override #2582

Closed
@bluss

Description

@bluss

For example:

[dependencies]
num-complex = { version = "*", features = ["newfeature"] }

This is not allowed by cargo if newfeature doesn't exist upstream, even if there is an override that has the new crate feature flag.

However, the feature flag can still be enabled manually cargo build --features=num-complex/newfeature.

If this worked as expected (using Cargo.toml), it would make it easier to test the new feature using a whole chain / group of crates that depend on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-featuresArea: features — conditional compilationA-overridesArea: general issues with overriding dependencies (patch, replace, paths)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions