From f0a695cc003c2193887cee234af67cf661847150 Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Wed, 6 Jan 2021 22:12:55 +0800 Subject: [PATCH 1/2] Add trait bound Sync for Hierarchy So that the struct Cgroup could across await Signed-off-by: Tim Zhang --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3d3c68d..1fcdaad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -386,7 +386,7 @@ pub trait ControllIdentifier { /// Control group hierarchy (right now, only V1 is supported, but in the future Unified will be /// implemented as well). -pub trait Hierarchy: std::fmt::Debug + Send { +pub trait Hierarchy: std::fmt::Debug + Send + Sync { /// Returns what subsystems are supported by the hierarchy. fn subsystems(&self) -> Vec; From 225388ff7cad12f6c650e7d98e7f0623b9324478 Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Wed, 6 Jan 2021 22:19:24 +0800 Subject: [PATCH 2/2] release: v0.2.1 Bump version to 0.2.1 Signed-off-by: Tim Zhang --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 14cf747..f6bdbb3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ repository = "https://github.com/kata-containers/cgroups-rs" keywords = ["linux", "cgroup", "containers", "isolation"] categories = ["os", "api-bindings", "os::unix-apis"] license = "MIT OR Apache-2.0" -version = "0.2.0" +version = "0.2.1" authors = ["The Kata Containers community ", "Levente Kurusa ", "Sam Wilson "] edition = "2018"