Skip to content

Commit 51c8731

Browse files
Import some suggestions
1 parent dea677e commit 51c8731

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

posts/2025-01-09-Rust-1.84.0.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ If you'd like to help us out by testing future releases, you might consider upda
2222
### Cargo considers Rust versions for dependency version selection
2323

2424
1.84.0 stabilizes the minimum supported Rust version (MSRV) aware resolver,
25-
which uses the declared [minimum supported Rust version](https://doc.rust-lang.org/cargo/reference/rust-version.html) from
26-
dependencies, if available, to improve package version selection. MSRV-aware
27-
aware selection allows library authors to easily adopt newer Rust versions
28-
while avoiding breaking consumers who want to use older Rust compilers.
25+
which prefers dependency versions compatible with the project's declared
26+
[MSRV](https://doc.rust-lang.org/cargo/reference/rust-version.html).
27+
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.
2930

3031
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):
3132

@@ -55,24 +56,21 @@ $ CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=allow cargo update
5556
Updating clap v4.0.32 -> v4.5.23
5657
```
5758

58-
Library authors should take the MSRV-aware resolver into account when deciding
59+
This gives library authors more flexibility when deciding
5960
their policy on adopting new Rust toolchain features. Previously, a library
6061
adopting features from a new Rust toolchain would force downstream users of
6162
that library who have an older Rust version to either upgrade their toolchain
6263
or manually select an old version of the library compatible with their
6364
toolchain (and avoid running `cargo update`). Now, those users will be able to
6465
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.
6966

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
7171
[`package.resolver = "3"`](https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions) in the Cargo.toml manifest file, or
7272
[`resolver.incompatible-rust-versions = "fallback"`](https://doc.rust-lang.org/cargo/reference/config.html#resolverincompatible-rust-versions) in the Cargo configuration file.
7373

74-
Read [the documentation](https://doc.rust-lang.org/cargo/reference/resolver.html#rust-version) for more details.
75-
7674
### Migration to a new trait solver begins
7775

7876
The Rust compiler is in the process of moving to a new implementation for the

0 commit comments

Comments
 (0)