Auto merge of #7549 - ehuss:minimal-versions-note, r=alexcrichton

Add a note to discourage the use of -Zminimal-versions.

We've discussed this a few times, that the current implementation isn't working out, so let's be more transparent about it.
This commit is contained in:
bors 2019-10-28 17:20:43 +00:00
commit 9a935d5f96

View File

@ -44,6 +44,12 @@ generated if dev-dependencies are skipped.
* Original Issue: [#4100](https://github.com/rust-lang/cargo/issues/4100) * Original Issue: [#4100](https://github.com/rust-lang/cargo/issues/4100)
* Tracking Issue: [#5657](https://github.com/rust-lang/cargo/issues/5657) * Tracking Issue: [#5657](https://github.com/rust-lang/cargo/issues/5657)
> Note: It is not recommended to use this feature. Because it enforces minimal
> versions for all transitive dependencies, its usefulness is limited since
> not all external dependencies declare proper lower version bounds. It is
> intended that it will be changed in the future to only enforce minimal
> versions for direct dependencies.
When a `Cargo.lock` file is generated, the `-Z minimal-versions` flag will When a `Cargo.lock` file is generated, the `-Z minimal-versions` flag will
resolve the dependencies to the minimum semver version that will satisfy the resolve the dependencies to the minimum semver version that will satisfy the
requirements (instead of the greatest version). requirements (instead of the greatest version).