Skip to content

Commit 242f096

Browse files
committed
Clarify -Z minimal-versions.
1 parent 740525f commit 242f096

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/doc/src/reference/unstable.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ When a `Cargo.lock` file is generated, the `-Z minimal-versions` flag will
155155
resolve the dependencies to the minimum semver version that will satisfy the
156156
requirements (instead of the greatest version).
157157

158+
The intended use-case of this flag is to check, during continuous integration,
159+
that the versions specified in Cargo.toml are a correct reflection of the
160+
minimum versions that you are actually using. That is, if Cargo.toml says
161+
`foo = "1.0.0"` that you don't accidentally depend on features added only in
162+
`foo 1.5.0`.
163+
158164
### out-dir
159165
* Original Issue: [#4875](https://github.com/rust-lang/cargo/issues/4875)
160166

0 commit comments

Comments
 (0)