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
The --no-deps flag of cargo-metadata is documented as such
--no-deps Output information only about the root package and don't fetch dependencies
From that, I would expect that the output would only include a single package. However, when run in a workspace, information about all packages in the workspace is output.
Steps
Find a workspace with multiple packages.
Run cargo metadata --no-deps --format-version 1
Observe multiple packages in output
Notes
Output of cargo version: cargo 1.41.0 (626f0f40e 2019-12-03)
The text was updated successfully, but these errors were encountered:
I filed #7927 as a simple doc fix. As for the way cargo metadata handles the "current" package, I agree it is limiting and confusing. I think #4018 and #7754 cover that problem, though.
Problem
The
--no-deps
flag ofcargo-metadata
is documented as suchFrom that, I would expect that the output would only include a single package. However, when run in a workspace, information about all packages in the workspace is output.
Steps
cargo metadata --no-deps --format-version 1
Notes
Output of
cargo version
:cargo 1.41.0 (626f0f40e 2019-12-03)
The text was updated successfully, but these errors were encountered: