You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With MSRV-aware version selection, the toil is reduced for maintainers to
28
+
support older toolchains by not needing to manually select older versions for
29
+
each dependency.
29
30
30
31
You can opt-in to the MSRV-aware resolver via [`.cargo/config.toml`](https://doc.rust-lang.org/cargo/reference/config.html#resolverincompatible-rust-versions):
Library authors should take the MSRV-aware resolver into account when deciding
59
+
This gives library authors more flexibility when deciding
59
60
their policy on adopting new Rust toolchain features. Previously, a library
60
61
adopting features from a new Rust toolchain would force downstream users of
61
62
that library who have an older Rust version to either upgrade their toolchain
62
63
or manually select an old version of the library compatible with their
63
64
toolchain (and avoid running `cargo update`). Now, those users will be able to
64
65
automatically use older library versions compatible with their older toolchain.
65
-
In the future, we expect this to provide more flexibility for library authors
66
-
to select their preferred support strategy for Rust versions, with the toolchain
67
-
helping users on older toolchains avoid breakage. See also the [detailed guidance](https://doc.rust-lang.org/beta/cargo/reference/rust-version.html#setting-and-updating-rust-version)
68
-
on what to consider when making a choice of supported version.
69
66
70
-
The new resolver will be enabled by default when optin into the 2024 edition (will stabilize in 1.85), but can be enabled as of 1.84 by setting
67
+
See the [documentation](https://doc.rust-lang.org/cargo/reference/rust-version.html#setting-and-updating-rust-version) for more considerations when deciding on an MSRV policy.
68
+
69
+
The new resolver will be enabled by default for projects using the 2024 edition
70
+
(which will stabilize in 1.85), but can be enabled in this release via
71
71
[`package.resolver = "3"`](https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions) in the Cargo.toml manifest file, or
72
72
[`resolver.incompatible-rust-versions = "fallback"`](https://doc.rust-lang.org/cargo/reference/config.html#resolverincompatible-rust-versions) in the Cargo configuration file.
73
73
74
-
Read [the documentation](https://doc.rust-lang.org/cargo/reference/resolver.html#rust-version) for more details.
75
-
76
74
### Migration to a new trait solver begins
77
75
78
76
The Rust compiler is in the process of moving to a new implementation for the
0 commit comments