Add --direct flag to use -Z direct-minimal-versions instead of -Z minimal-versions #25
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.
If there are dependencies that are incompatible with
-Z minimum-versions
, it is also reasonable to use-Z direct-minimal-versions
, since it is hard to maintain-Z minimum-versions
compatibility in such situations.By using
--direct
flag, cargo-minimal-versions uses-Z direct-minimal-versions
instead of-Z minimal-versions
.Note that using
-Z direct-minimal-versions
may miss some of the problems that can be found when using-Z minimal-versions
. However, if there is a problem only in a particular version of a dependency, a problem that was missed when using-Z minimal-versions
may be found by using-Z direct-minimal-versions
(because the resolved dependency version is different).Closes #16
cc rust-lang/cargo#5657