cargo-tree: Add no-proc-macro to edges flag #9165
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-tree
Describe the problem you are trying to solve
We're trying evaluate what dependencies are ending up in the final binary of a program,
cargo-tree -e normal
gets us most of the way there, howevernormal
still includes proc-macros and their dependencies, which are only run on the host machine and don't end up in the final target binary, proc-macros usually have a lot of dependencies so the list given by tree is cluttered, and requires manual filtering to get the final list of dependencies. It would be nice if there was an option to only see dependencies which will be compiled to the target platform.Describe the solution you'd like
Add
-e no-proc-macro
edge to remove all dependencies that are currently marked as a proc-macro and their sub-dependencies.The text was updated successfully, but these errors were encountered: