This change expands the use of cargo tree to resolve features for different combinations of host -> target platform triples where before cargo-bazel was only capable of resolving host dependencies for the current host platform and not a foreign platform.
A lengthy description of how this was done can be found at crate_universe/src/metadata/cargo_tree_resolver.rs - TreeResolver::create_rustc_wrapper.
This change expands the use of
cargo tree
to resolve features for different combinations ofhost -> target
platform triples where beforecargo-bazel
was only capable of resolving host dependencies for the current host platform and not a foreign platform.A lengthy description of how this was done can be found at
crate_universe/src/metadata/cargo_tree_resolver.rs - TreeResolver::create_rustc_wrapper
.closes https://github.com/bazelbuild/rules_rust/issues/2212