Use resolver = 2 in all Cargo.tomls (#608)

This commit is contained in:
Ivan Petkov 2024-05-04 19:56:00 +00:00 committed by GitHub
parent 33d5862dbb
commit 92d2b4b64a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
19 changed files with 22 additions and 0 deletions

View File

@ -6,5 +6,7 @@ edition = "2021"
[dependencies]
foo = { workspace = true }
[workspace]
resolver = "2"
[workspace.dependencies]
foo = { path = "./foo", target = "wasm32-unknown-unknown", artifact = ["bin", "cdylib", "staticlib"] }

View File

@ -201,6 +201,7 @@ opt-level = 2
overflow-checks = true
[workspace]
resolver = "2"
members = ["member1", "path/to/member2", "crates/*"]
default-members = ["path/to/member2", "path/to/member3/foo"]
exclude = ["crates/foo", "path/to/other"]

View File

@ -111,6 +111,7 @@ garply = "8"
grault = "7"
[workspace]
resolver = "2"
default-members = ["path/to/member2", "path/to/member3/foo"]
exclude = ["crates/foo", "path/to/other"]
members = ["member1", "path/to/member2", "crates/*"]

View File

@ -4,6 +4,7 @@ version = "0.2.0"
edition = "2021"
[workspace]
resolver = "2"
members = ["inner"]
[dependencies]

View File

@ -10,6 +10,7 @@
# Instead we need to drop a dummy file at `src/lib.rs`, and this is a
# regression test for that case.
[workspace]
resolver = "2"
package.version = "0.0.1"
metadata.crane.name = "illegal-bin"
members = [

View File

@ -6,6 +6,8 @@ build = "cranespecific-dummy.rs"
name = "workspace-bindeps"
version = "0.1.0"
[workspace]
resolver = "2"
[workspace.dependencies.foo]
artifact = "cdylib"
path = "./foo"

View File

@ -5,6 +5,8 @@ version = "0.1.0"
[dependencies]
foo = { workspace = true }
[workspace]
resolver = "2"
[workspace.dependencies]
foo = { path = "./foo", target = "wasm32-unknown-unknown", artifact = "cdylib" }

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = ["print"]
[workspace.package]

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
# NB: hello and world are intentionally left out cargo will
# promote them to members since they are listed as path deps
members = ["print"]

View File

@ -1,2 +1,3 @@
[workspace]
resolver = "2"
members = ["./member/qux"]

View File

@ -1,2 +1,3 @@
[workspace]
resolver = "2"
members = ["./member/qux"]

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
package.version = "0.0.1"
metadata.crane.name = "with-libs"
members = [

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
package.version = "0.0.1"
metadata.crane.name = "workspace-git"
members = [

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
# NB: hello and world are intentionally left out cargo will
# promote them to members since they are listed as path deps
members = ["my-workspace-hack","print"]

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
# NB: hello and world are intentionally left out cargo will
# promote them to members since they are listed as path deps
members = ["print"]

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
# NB: hello and world are intentionally left out cargo will
# promote them to members since they are listed as path deps
members = ["print"]

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
[package]
name = "print"

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
# NB: hello and world are intentionally left out cargo will
# promote them to members since they are listed as path deps
members = ["print"]

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = [
"shared",
"client",