]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
rust: move dependencies to rust/Cargo.toml
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Aug 2025 10:07:44 +0000 (12:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 27 Aug 2025 08:57:04 +0000 (10:57 +0200)
As more crates start using the same dependencies, it's better to not
repeat the versions and move the dependency declarations to the workspace.

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/Cargo.toml
rust/qemu-api/Cargo.toml

index 0a83db1535626e9a10a3f6d31c708dbb0591062e..6f8884eb30b42cf0219c7d3bbff8443b2f525f8e 100644 (file)
@@ -15,6 +15,11 @@ license = "GPL-2.0-or-later"
 repository = "https://gitlab.com/qemu-project/qemu/"
 rust-version = "1.77.0"
 
+[workspace.dependencies]
+anyhow = "~1.0"
+foreign = "~0.3.1"
+libc = "0.2.162"
+
 [workspace.lints.rust]
 unexpected_cfgs = { level = "deny", check-cfg = [
     'cfg(MESON)', 'cfg(HAVE_GLIB_WITH_ALIGNED_ALLOC)',
index db7000dee441003da8e34d33352bed054d68b53d..c07a17a28b0146e4c59ea364d674edb9d4b77dfe 100644 (file)
@@ -15,9 +15,9 @@ rust-version.workspace = true
 
 [dependencies]
 qemu_api_macros = { path = "../qemu-api-macros" }
-anyhow = "~1.0"
-libc = "0.2.162"
-foreign = "~0.3.1"
+anyhow = { workspace = true }
+foreign = { workspace = true }
+libc = { workspace = true }
 
 [features]
 default = ["debug_cell"]