cargo-tree
cargo-tree copied to clipboard
RFE: Add support for workspaces
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.
Workspace support would be awesome.
In the meantime, you can use find . -name Cargo.toml | xargs -I '{}' cargo tree --manifest-path '{}'
.