Auto merge of #5122 - acmcarther:acm-emit-features-from-cargo-metadata, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 6 Mar 2018 03:01:47 +0000 (03:01 +0000)
committerbors <bors@rust-lang.org>
Tue, 6 Mar 2018 03:01:47 +0000 (03:01 +0000)
commite514f9874bb8e40927fade58b598be29fd502308
tree43877ac3c53ee74c210d41403d268fe89e76930c
parent2659f40d427534c5c728e327ce02f2cfeb123ece
parent6a2b6468ca11bf31987956b22eb58f46727fbbfa
Auto merge of #5122 - acmcarther:acm-emit-features-from-cargo-metadata, 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 https://github.com/google/cargo-raze/issues/7