File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,20 @@ which can be activated with `resolver = "2"` in `Cargo.toml`.
12
12
Starting in Rust 2021, this will be the default.
13
13
That is, writing ` edition = "2021" ` in ` Cargo.toml ` will imply ` resolver = "2" ` .
14
14
15
+ The resolver is a global setting for a [ workspace] , and the setting is ignored in dependencies.
16
+ The setting is only honored for the top-level package of the workspace.
17
+ If you are using a [ virtual workspace] , you will still need to explicitly set the [ ` resolver ` field]
18
+ in the ` [workspace] ` definition if you want to opt-in to the new resolver.
19
+
15
20
The new feature resolver no longer merges all requested features for
16
21
crates that are depended on in multiple ways.
17
22
See [ the announcement of Rust 1.51] [ 5 ] for details.
18
23
19
24
[ 4 ] : ../../cargo/reference/resolver.html#feature-resolver-version-2
20
25
[ 5 ] : https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver
26
+ [ workspace ] : ../../cargo/reference/workspaces.html
27
+ [ virtual workspace ] : ../../cargo/reference/workspaces.html#virtual-manifest
28
+ [ `resolver` field ] : ../../cargo/reference/resolver.html#resolver-versions
21
29
22
30
## Migration
23
31
You can’t perform that action at this time.
0 commit comments