cargo tree -i
does not interpret -e no-proc-macro
in a useful way
#12030
Labels
C-bug
Category: bug
Command-tree
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Problem
In libsignal's
attest
crate, we have dependencies onserde
:However, adding
-e no-proc-macro
merely truncates the tree for the secondserde
, rather than omitting it.The same applies to
cargo tree -d
, leading to some silly workarounds in our script that checks for duplicate crates (for code size reasons).Steps
No response
Possible Solution(s)
Preferred solution: in
-i
and-d
mode,no-proc-macro
should hide paths that go through proc-macros, rather than starting at the target crate and stopping on the way back to the root. This helps answer my real question of "which crates have object files that end up in my built library".Alternate solution: reject (or ignore-with-warning)
no-proc-macro
in-i
and-d
until it does something useful. (I can't think of any use for the current behavior.)Notes
No response
Version
The text was updated successfully, but these errors were encountered: