-
Notifications
You must be signed in to change notification settings - Fork 94
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
Support --unit-graph #107
Comments
Hmm, does it make sense for cargo_metadata to expose unstable info? |
We can put it behind a cargo feature that also enables an unstable rustc feature. That way you can only use it on nightly |
This would prove very useful but I am not sure what the status on this is on cargo considering that rust-lang/cargo#8002 hasn't been updated since 2020 |
I was trying to implement parsing of --unit-graph but it doesn't seem like this is the most up to date documentation since during testing additional fields where reported. If someone knows where to get the most up to date documentation it would be great. |
Okay so it looks that https://github.com/rust-lang/cargo/blob/5aad9b302adc2f4cf1f184315f497fb3e3256b78/src/cargo/core/compiler/unit_graph.rs#L39 is getting serialized as is so that could simply copied and pasted and adapted for the crate. |
rust-lang/cargo#8002
rust-lang/cargo#7977
The new feature resolver has turned metadata inadequate for some purposes, so --unit-graph was introduced.
The text was updated successfully, but these errors were encountered: