Skip to content

Exact features set to be used for testing #9725

@vporton

Description

@vporton

Describe the problem you are trying to solve
The software needs to be recompiled several times to test with every set of features to be tested with.

Moreover, there is no automated way to make cargo to test a package with several different sets of features.

Describe the solution you'd like
Please add to target section of Cargo.toml new key exact-features that will cause this target to be compiled with this exact set of features, independently of what features are specified in the command line:

exact-features = ["use_assembler", "no_api_v2"]

This would allow to use such a target together with test = true to test it fully automatically.

Notes
Also, the suggested feature is useful for software requiring especially good reliability to complicate user to change features (but the reason I suggest it is for testing).

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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