cargo-tree icon indicating copy to clipboard operation
cargo-tree copied to clipboard

RFE: Add support for workspaces

Open andrewdavidmackenzie opened this issue 4 years ago • 2 comments

What do you think about adding support for workspaces?

I have a workspace project with multiple crates in it, 3 of them produce binaries, the others are libraries and dependencies for the binaries...

It would be nice to view the dependency tree (especially useful when starting to publish the crates in dependency order DAG bottoms up.... a real PITA).

You could either print multiple trees for each project, or consider the workspace the root, and the projects below. If one project is a dependency of the other then it would have two "paths" to the root and would need some way to represent that.

andrewdavidmackenzie avatar Feb 08 '20 12:02 andrewdavidmackenzie

Workspace support would be awesome.

lovesegfault avatar Feb 11 '20 05:02 lovesegfault

In the meantime, you can use find . -name Cargo.toml | xargs -I '{}' cargo tree --manifest-path '{}'.

eoger avatar May 29 '20 14:05 eoger