From 7e6f57830a3bad2b06ac1d87507dc6476254e5e8 Mon Sep 17 00:00:00 2001 From: Alexandre Janniaux Date: Wed, 19 Jun 2024 10:22:50 +0200 Subject: [PATCH] src: Cargo.toml: fix warnings on workspace Since we'll be using edition = "2021", and we have a virtual workspace[^1], we need to specify the manifest resolver[^2]. Otherwise, cargo emits the following 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 See release note[^3] for details on how this resolver changes the way features are selected for packages inside the workspace. [^1]: https://doc.rust-lang.org/cargo/reference/workspaces.html#virtual-workspace [^2]: https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html [^3]: https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver --- src/rust/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml index 2105d4b386..b1a9555a23 100644 --- a/src/rust/Cargo.toml +++ b/src/rust/Cargo.toml @@ -3,3 +3,4 @@ members = [ "vlcrs-messages", "vlcrs-sys-generator" ] +resolver = "2"