diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-22 12:07:44 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-27 10:57:04 +0200 |
commit | 92dedaf169ddcf8c81fa6d21c86c60f3b82458e5 (patch) | |
tree | 14bef7aa6041604ddabd2110c35a98a3f6970ad0 | |
parent | 4344b358a8dd62591db0b7b98328511fadffca85 (diff) | |
download | qemu-92dedaf169ddcf8c81fa6d21c86c60f3b82458e5.zip qemu-92dedaf169ddcf8c81fa6d21c86c60f3b82458e5.tar.gz qemu-92dedaf169ddcf8c81fa6d21c86c60f3b82458e5.tar.bz2 |
rust: move dependencies to rust/Cargo.toml
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>
-rw-r--r-- | rust/Cargo.toml | 5 | ||||
-rw-r--r-- | rust/qemu-api/Cargo.toml | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 0a83db1..6f8884e 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -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)', diff --git a/rust/qemu-api/Cargo.toml b/rust/qemu-api/Cargo.toml index db7000d..c07a17a 100644 --- a/rust/qemu-api/Cargo.toml +++ b/rust/qemu-api/Cargo.toml @@ -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"] |