From b37b81bb75f35bae34ec2221597faf41ad89581d Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Tue, 16 Jun 2026 17:15:18 +0100 Subject: [PATCH] lib: Use workspace nix version We have a note in the workspace Cargo.toml that the version there needs to be in sync with the libs versions, so just update them to use the workspace version rather than manually managing this. Signed-off-by: stevenhorsman --- src/libs/kata-sys-util/Cargo.toml | 2 +- src/libs/kata-types/Cargo.toml | 4 ++-- src/libs/shim-interface/Cargo.toml | 2 +- src/libs/test-utils/Cargo.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libs/kata-sys-util/Cargo.toml b/src/libs/kata-sys-util/Cargo.toml index 81eeb4b648..7dc35d6c2c 100644 --- a/src/libs/kata-sys-util/Cargo.toml +++ b/src/libs/kata-sys-util/Cargo.toml @@ -16,7 +16,7 @@ byteorder = "1.4.3" fail = "0.5.1" lazy_static = "1.4.0" libc = "0.2.100" -nix = "0.26.4" +nix = { workspace = true } serde = { version = "1.0.138", features = ["derive"] } serde_json = "1.0.73" slog = "2.5.2" diff --git a/src/libs/kata-types/Cargo.toml b/src/libs/kata-types/Cargo.toml index e3cd01ea37..4c47ea9dba 100644 --- a/src/libs/kata-types/Cargo.toml +++ b/src/libs/kata-types/Cargo.toml @@ -29,7 +29,7 @@ serde-enum-str = "0.5" sysinfo = "0.34.2" sha2 = "0.10.8" flate2 = "1.1" -nix = "0.26.4" +nix = { workspace = true } oci-spec = { version = "0.8.1", features = ["runtime"] } gpt = "4.1.0" scopeguard = "1.0.0" @@ -42,7 +42,7 @@ sysctl = "0.7.1" [dev-dependencies] tempfile = "3.19.1" test-utils = { path = "../test-utils" } -nix = "0.26.4" +nix = { workspace = true } rstest = "0.18" [features] diff --git a/src/libs/shim-interface/Cargo.toml b/src/libs/shim-interface/Cargo.toml index cff3334072..f26b94db23 100644 --- a/src/libs/shim-interface/Cargo.toml +++ b/src/libs/shim-interface/Cargo.toml @@ -13,7 +13,7 @@ edition = "2018" [dependencies] anyhow = "^1.0" -nix = "0.26.4" +nix = { workspace = true } tokio = { version = "1.44.2", features = ["rt-multi-thread"] } hyper = { version = "0.14.20", features = ["stream", "server", "http1"] } hyperlocal = "0.8" diff --git a/src/libs/test-utils/Cargo.toml b/src/libs/test-utils/Cargo.toml index 6230f4f90b..0bfb133cc2 100644 --- a/src/libs/test-utils/Cargo.toml +++ b/src/libs/test-utils/Cargo.toml @@ -12,5 +12,5 @@ license = "Apache-2.0" edition = "2018" [dependencies] -nix = "0.26.4" +nix = { workspace = true } libc = "0.2"