Pass in --filter-platform to cargo metadata #1461
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This required a surprising amount of rejiggering, but ended up paying off a lot of tech debt. I realized that now that we're passing in frozen/locked/offline, we'd better not cause excessive downloads due to platforms.
However, extra downloads compared to
cargo test
can still happen because nextest currently asks for data about all features. I think changing this may not be possible due to #1402. We're likely going to need graph metadata about all features in #1402, in order to make decisions about what to really build.TODO:
Fixes #1298.