Exclude all non-members from workspace #13600
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`
S-triage
Status: This issue is waiting on initial triage.
Problem
In uv, we have a number of crates in a
crates/
directory, and this root Cargo.toml to go with it:Since we're a python build tool, we sometimes have to clone repositories that contain a
Cargo.toml
on their own, e.g.or, for a minimal example:
The build of deptry fails:
I can add
foo
orbar
toworkspace.exclude
, but i would like to exclude all directories that aren'tcrates
. I tried*
,**
,**/*
,./*
,./**
and./**/*
to no avail."./"
works but removes all members from the workspace.Proposed Solution
A switch to exclude all non-member packages from the workspace.
Notes
No response
The text was updated successfully, but these errors were encountered: