Target-specific workspace default-members (or excludes) #9650
Labels
A-workspaces
Area: workspaces
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Describe the problem you are trying to solve
I want to exclude (or rather, specify different subset of default members) for certain platforms in cargo toml/config.
Describe the solution you'd like
Just like there are triples-specific overrides in .cargo/config.toml, I'd like to see workspace-related keys there.
My primary use case is to disable certain example (implemented as a full-blown workspace member) when compiling on Windows + MinGW toolchain, because certain libraries (namely, QtWebEngine) are not easily available there. So, I'd expect something like this in my workspace root Cargo.toml:
Notes
I tried tweaking in such way both Cargo.toml and .cargo/config.toml, and none of that currently works. The only workaround for now is manually commenting out or disabling a package via
--workspace --exclude <SPEC>
.See woboq/qmetaobject-rs#167
The text was updated successfully, but these errors were encountered: