Skip to content

Commit

Permalink
Update cargo resolver version
Browse files Browse the repository at this point in the history
Calling cargo command into the project was giving this warning:

```
warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
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
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
```

The workspace.resolver is updated to version 2 and each crates set
edition = 2021
  • Loading branch information
kapare committed Apr 10, 2024
1 parent f30697d commit 5b029e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[workspace]
# Opt-in to the new feature resolver introduced in Rust 1.51 and Edition 2021.
# https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
resolver = "2"
members = [
"setup-deploy-keys",
"ansible/roles/dev-desktop/files/team_login",
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/dev-desktop/files/team_login/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
authors = ["Oli Scherer <github35764891676564198441@oli-obk.de>"]
edition = "2018"
edition = "2021"
name = "team_login"
version = "0.1.0"

Expand Down
2 changes: 1 addition & 1 deletion setup-deploy-keys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "setup-deploy-keys"
version = "0.1.0"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
edition = "2018"
edition = "2021"

[[bin]]
name = "deploy"
Expand Down

0 comments on commit 5b029e7

Please sign in to comment.