Skip to content

Commit

Permalink
Update workspace resolver version to 3 (#915)
Browse files Browse the repository at this point in the history
For virtual workspaces (workspaces where there isn't a top level crate,
only member crates), there is no top-level Rust `edition` property from
which Cargo can infer its resolver version. Instead, one must specify the
resolver version explicitly.

Now we're using Rust 2024 edition (which defaults to resolver version
3 for crates using that edition), we should update the overall workspace
resolver version from 2 to 3 for parity with it.

See:
https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions

GUS-W-17894359.
  • Loading branch information
edmorley authored Feb 24, 2025
1 parent 59d08c9 commit 108faf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
resolver = "2"
resolver = "3"
members = [
"examples/basics",
"examples/execd",
Expand Down

0 comments on commit 108faf1

Please sign in to comment.