From a32f96e473f5974db5f338a302e52d79101db8b4 Mon Sep 17 00:00:00 2001 From: Zvonko Kaiser Date: Thu, 9 Jul 2026 21:18:34 +0000 Subject: [PATCH] build: Bump oci-spec to 0.10.0 cgroups-rs exposes oci-spec types in its public API (e.g. Manager::set() takes &LinuxResources), so the version pinned here dictates which oci-spec version every consumer must use: 0.x lines are semver-incompatible, and a consumer on a newer oci-spec gets "expected LinuxResources, found LinuxResources" type mismatches. Kata Containers is moving its workspace to oci-spec 0.10.0 and cannot call into cgroups-rs until this crate follows. The 0.8 to 0.10 changes are additive for everything cgroups-rs touches (no code changes needed): the crate builds warning-free with the oci feature and the unit tests pass (the only failures are the pre-existing fs manager tests that need root to write cgroupfs). Signed-off-by: Zvonko Kaiser Assisted-by: Claude Fable 5 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0a5b69f..8ed8e6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ nix = { version = "0.25.0", default-features = false, features = ["event", "fs", libc = "0.2" serde = { version = "1.0", features = ["derive"], optional = true } thiserror = "1" -oci-spec = { version = "0.8.1", optional = true } +oci-spec = { version = "0.10.0", optional = true } zbus = "5.8" bit-vec = "0.6"