-
Notifications
You must be signed in to change notification settings - Fork 104
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
Investigate using cargo metadata
internally
#7
Comments
I've rewritten the planner to use output from Once this change is in, the whole stack will get much more testable as it won't depend on weird internal state of Cargo objects. EDIT: Prototype here https://github.com/google/cargo-raze/compare/use-cargo-metadata |
…a, r=alexcrichton Emit Resolve.features_sorted in "cargo metadata" This PR adds `features` to `metadata.resolve.nodes[*]` using the Resolve object's known features. This is different from the `features` fields that already exist elsewhere within metadata as this one is the actual features that need to be used in order to build the code. Context: I'm currently using Cargo's internals to synthesize BUILD files for the Bazel build tool. `cargo metadata` currently provides almost everything I need in order to avoid using Cargo's internals -- *except* for this. cc google/cargo-raze#7
I wasn't aware that these were outstanding issues. I'm currently working around lack of platform-specific details by performing dependency pruning: cargo-raze/impl/src/planning.rs Lines 248 to 257 in 2e4128f
(using dependency.target and comparing with the configured target). #53 tracks feature pruning (which is in an unclear state cargo-side as well). |
Is this investigation still open? |
I wrote most of the integration before
cargo metadata
existed. I'm content with just continuting to use Cargo's internals in the event thatcargo metadata
is missing something needed, but if its possible to use it today, we probably should.Crosslinks:
rust-lang/cargo#3815
The text was updated successfully, but these errors were encountered: