Skip to content

Commit

Permalink
Fix edition number
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss authored Oct 23, 2024
1 parent 970dd87 commit eb24f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust-2024/cargo-resolver.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Since Rust 1.84.0, Cargo has opt-in support for compatibility with
by setting [`resolver.incompatible-rust-version = "fallback"`] in `.cargo/config.toml`.

Starting in Rust 2024, this will be the default.
That is, writing `edition = "2021"` in `Cargo.toml` will imply `resolver = "3"`
That is, writing `edition = "2024"` in `Cargo.toml` will imply `resolver = "3"`
which will imply [`resolver.incompatible-rust-version = "fallback"`].

The resolver is a global setting for a [workspace], and the setting is ignored in dependencies.
Expand Down

0 comments on commit eb24f96

Please sign in to comment.