@@ -338,26 +338,27 @@ This was stabilized in 1.79 in [#13608](https://github.com/rust-lang/cargo/pull/
338338### MSRV-aware resolver
339339
340340` -Zmsrv-policy ` allows access to an MSRV-aware resolver which can be enabled with:
341- - ` resolver.something-like-precedence ` config field
341+ - ` resolver.incompatible-rust-versions ` config field
342342- ` workspace.resolver = "3" ` / ` package.resolver = "3" `
343343- ` package.edition = "2024" ` (only in workspace root)
344344
345345The resolver will prefer dependencies with a ` package.rust-version ` that is the same or older than your project's MSRV.
346346Your project's MSRV is determined by taking the lowest ` package.rust-version ` set among your workspace members.
347347If there is none set, your toolchain version will be used with the intent to pick up the version from rustup's ` rust-toolchain.toml ` , if present.
348348
349- #### ` resolver.something-like-precedence `
349+ #### ` resolver.incompatible-rust-versions `
350350* Type: string
351- * Default: "something-like-maximum "
352- * Environment: ` CARGO_RESOLVER_SOMETHING_LIKE_PRECEDENCE `
351+ * Default: "allow "
352+ * Environment: ` CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS `
353353
354- Select which policy should be used when resolving dependencies. Values include
355- - ` something-like-maximum ` : prefer highest compatible versions of a package
356- - ` something-like-rust-version ` : prefer versions of packages compatible with your project's Rust version
354+ When resolving a version for a dependency, select how versions with incompatible ` package.rust-version ` s are treated.
355+ Values include:
356+ - ` allow ` : treat ` rust-version ` -incompatible versions like any other version
357+ - ` fallback ` : only consider ` rust-version ` -incompatible versions if no other version matched
357358
358359Can be overridden with
359360- ` --ignore-rust-version ` CLI option
360- - Setting the dependency's version requirement too high
361+ - Setting the dependency's version requirement higher than any version with a compatible ` rust-version `
361362- Specifying the version to ` cargo update ` with ` --precise `
362363
363364## precise-pre-release
0 commit comments