You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say that we would like to develop a crate which has two features mutually exclusive:
runtime-tokio
runtime-async-std
I would like to keep the same api, in this case if I run:
cargo test --all-features
it will show duplicated elements.
I think what's missing here is the notion of mutually exclusive features, if we can say two features are mutually exclusive, it will be able to solve the problem because we can then let cargo to run them one by one.
For example, we would like to design a crate with features: a, b, c, d, a and b are mutually exclusive.
Then cargo test --all-features should run two times:
cargo test --no-default-features --features a,c,d
cargo test --no-default-features --features b,c,d
Describe the solution you'd like
Notes
The text was updated successfully, but these errors were encountered:
0x8f701
added
the
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
label
Feb 24, 2020
0x8f701
changed the title
Mutually exclusive features
Mutually exclusive features support
Feb 24, 2020
Describe the problem you are trying to solve
Say that we would like to develop a crate which has two features mutually exclusive:
runtime-tokio
runtime-async-std
I would like to keep the same api, in this case if I run:
it will show
duplicated elements
.I think what's missing here is the notion of
mutually exclusive
features, if we can say two features are mutually exclusive, it will be able to solve the problem because we can then letcargo
to run them one by one.For example, we would like to design a crate with features:
a
,b
,c
,d
,a
andb
are mutually exclusive.Then
cargo test --all-features
should run two times:Describe the solution you'd like
Notes
The text was updated successfully, but these errors were encountered: