mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

cargo-tree: Handle -e no-proc-macro when building the graph ### What does this PR try to resolve? Makes `-e no-proc-macro` more useful when combined with `-i` or `-d`. Fixes #12030. ### How should we test and review this PR? The new and existing tests should cover this, I hope! ### Additional information Pruning proc-macro crates during graph construction is closer to how the edge-based filters work (`[no-]build` etc.), so even though `no-proc-macro` isn't technically filtering on edges, it's following a well-established code path.