Call for testing
The MSRV-aware resolver part of this RFC is implemented and we are wanting to collect feedback in preparation for stabilization.
The goal is to allow you to manage your dependencies without having to manually ensure they are compatible with your rust-version
- When stabilized, this will be opt-in. When upgrading to the 2024 Edition, it will be the opt-out.
- It uses
package.rust-version if set, otherwise rustc --version
- It won't fail if there isn't a MSRV-compatible version but instead it will pick a compatible version
Basic steps:
Requirements:
At minimum, run
$ CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback cargo +nightly -Zmsrv-policy generate-lockfile
Feel free to run any other commands and workflows with
CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback (proposed behavior) or CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=allow (existing behavior) with +nightly -Zmsrv-policy
- You could also set them via
.cargo/config.toml
workspace.resolver = "3" or package.edition = "2024" with cargo-features = ["edition2024"] in your Cargo.toml
See also Documentation
Known issues
Changes between call for testing
- Before 2024-08-08
- Before ????
Please leave feedback on this issue
Call for testing
The MSRV-aware resolver part of this RFC is implemented and we are wanting to collect feedback in preparation for stabilization.
The goal is to allow you to manage your dependencies without having to manually ensure they are compatible with your rust-version
package.rust-versionif set, otherwiserustc --versionBasic steps:
Requirements:
betastableAt minimum, run
$ CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback cargo +nightly -Zmsrv-policy generate-lockfileFeel free to run any other commands and workflows with
CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback(proposed behavior) orCARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=allow(existing behavior) with+nightly -Zmsrv-policy.cargo/config.tomlworkspace.resolver = "3"orpackage.edition = "2024"withcargo-features = ["edition2024"]in yourCargo.tomlSee also Documentation
Known issues
package.rust-versioncargo addshould be avoiding these version requirementsChanges between call for testing
Please leave feedback on this issue