-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 metadata subcommand should work with workspaces #3003
Comments
Ok, so to solve this we need to get rid of the Also, we currently serialize arbitrary root into the lockfile. It should be possible to get rid of this in a backwards compatible way. |
Note: |
Note that unfortunately we can't get rid of |
But why? What are the reasons besides backwards compatibility? |
No reason beyond backwards compatibility. The thinking is that older Cargo instances should be able to work with newer lock files wherever possible. |
But we don't use So it should be possible to remove it? |
That is, remove from the |
Oh! We should totally do that if we can! |
And is there any way to get the list of workspace members? Perhaps this should be a part of We don't need this in IntelliJ Rust yet, but it seems to be generally useful. |
Oh yeah certainly, I believe you can iterate over packages with |
`cargo metadata` works with workspaces Closes #3003
Currently it gives
Ideally it should return the info in the same format as
metadata
command for the non-virtual manifest. The only obstacle seems to be theroot
node in theresolve
.And perhaps for any package that is a part of the workspace
cargo metadata
should indicate it.The text was updated successfully, but these errors were encountered: