Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo-tree: Add no-proc-macro to edges flag #9165

Closed
XAMPPRocky opened this issue Feb 11, 2021 · 0 comments · Fixed by #9488
Closed

cargo-tree: Add no-proc-macro to edges flag #9165

XAMPPRocky opened this issue Feb 11, 2021 · 0 comments · Fixed by #9488
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-tree

Comments

@XAMPPRocky
Copy link
Member

XAMPPRocky commented Feb 11, 2021

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, however normal 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.

@XAMPPRocky XAMPPRocky added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Feb 11, 2021
@bors bors closed this as completed in 238a9fa May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-tree
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants