Skip to content

Commit

Permalink
Explicitly set Cargo resolver version in workspace
Browse files Browse the repository at this point in the history
```
warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
```

Context: rust-lang/cargo#10112
  • Loading branch information
brandonweeks committed Sep 7, 2023
1 parent db82e98 commit 8a96930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = [
"native-pkcs11",
"native-pkcs11-core",
Expand Down
2 changes: 1 addition & 1 deletion native-pkcs11/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ thiserror = "1.0.48"
tracing = "0.1.37"
tracing-error = "0.2.0"
tracing-journald = "0.3"
tracing-subscriber = "0.3.17"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }

[lib]
crate-type = ["lib", "cdylib"]
Expand Down

0 comments on commit 8a96930

Please sign in to comment.