@@ -338,26 +338,26 @@ This was stabilized in 1.79 in [#13608](https://github.com/rust-lang/cargo/pull/
338
338
### MSRV-aware resolver
339
339
340
340
` -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
342
342
- ` workspace.resolver = "3" ` / ` package.resolver = "3" `
343
343
- ` package.edition = "2024" ` (only in workspace root)
344
344
345
345
The resolver will prefer dependencies with a ` package.rust-version ` that is the same or older than your project's MSRV.
346
346
Your project's MSRV is determined by taking the lowest ` package.rust-version ` set among your workspace members.
347
347
If 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.
348
348
349
- #### ` resolver.something-like-precedence `
349
+ #### ` resolver.incompatible-rust-versions `
350
350
* Type: string
351
- * Default: "something-like-maximum "
352
- * Environment: ` CARGO_RESOLVER_SOMETHING_LIKE_PRECEDENCE `
351
+ * Default: "allow "
352
+ * Environment: ` CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS `
353
353
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
+ Select how packages with incompatible rust-versions should be resolved . Values include:
355
+ - ` allow ` : treat them like any other dependency
356
+ - ` fallback ` : only consider them if no other dependency version matched
357
357
358
358
Can be overridden with
359
359
- ` --ignore-rust-version ` CLI option
360
- - Setting the dependency's version requirement too high
360
+ - Setting the dependency's version requirement above any version that is rust-version compatible
361
361
- Specifying the version to ` cargo update ` with ` --precise `
362
362
363
363
## precise-pre-release
0 commit comments