You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem cargo tree -d can show duplicates when used with the --target flag that, although the packages will be built twice, it is unavoidable when cross-compiling. This can be confusing because the output shows the same package twice with the same version, but no other explanation of why they are shown.
Steps
Create a manifest where a dependency shows up as both a normal dependency and a build-dependency (or proc-macro). Example:
Problem
cargo tree -d
can show duplicates when used with the--target
flag that, although the packages will be built twice, it is unavoidable when cross-compiling. This can be confusing because the output shows the same package twice with the same version, but no other explanation of why they are shown.Steps
Create a manifest where a dependency shows up as both a normal dependency and a build-dependency (or proc-macro). Example:
Running
cargo tree -d --target x86_64-unknown-linux-gnu
will show:Possible Solution(s)
I can think of two possible solutions:
--target
(but still filtering for the given target).Notes
Output of
cargo version
:cargo 1.54.0-nightly (070e459 2021-05-11)
The text was updated successfully, but these errors were encountered: