Re-exports cgroups-rs 0.5.x API for backward compatibility.
// Source: https://github.com/kata-containers/kata-containers | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright (c) 2026 Ant Group
//
// SPDX-License-Identifier: Apache-2.0
//
//! Re-exports for cgroups-rs 0.5.x.
//!
//! The legacy cgroupfs API moved under `cgroups::fs` in 0.5.x. Agent code
//! was written against the 0.3.x layout where those types lived at the crate
//! root; this module preserves the old paths.
pub use cgroups::fs::{
blkio, cpu, cpuacct, cpuset, devices, hierarchies, hugetlb, memory, pid, BlkIoDeviceResource,
BlkIoDeviceThrottleResource, Cgroup, Controller, DeviceResource, DeviceResources, Hierarchy,
HugePageResource, MaxValue, NetworkPr
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key