Option for cargo tree
to filter out (non-)workspace members
#14420
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`
Command-tree
E-easy
Experience: Easy
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Problem
I'm opening this issue because #8105 (comment) said to open one if one wanted that feature.
cargo tree
allows with--prune
to remove dependencies from the list. However, as mentioned in #8105 (comment) it only takes inSPEC
, and not the proposed "non-members" or "members".This would be useful to have, since it would allow easily viewing the dependency tree with only workspace members.
Proposed Solution
The solution would be adding some argument, that would then take the values
both
,member
, andnon-member
(as mentioned in #8105 (comment)).I have no proposed name yet for the argument.
Notes
At the time of writing, there does not exist any such command, see https://github.com/rust-lang/cargo/blob/ba8b39413c74d08494f94a7542fe79aa636e1661/src/doc/src/commands/cargo-tree.md for the
cargo tree
documentation at the time of writing.The text was updated successfully, but these errors were encountered: