libcgroups 0.6.0

Library for cgroup
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85.0"
name = "libcgroups"
version = "0.6.0"
authors = ["youki team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library for cgroup"
homepage = "https://youki-dev.github.io/youki/"
readme = "README.md"
keywords = [
    "youki",
    "container",
    "cgroups",
]
license = "Apache-2.0"
repository = "https://github.com/youki-dev/youki"
resolver = "2"

[features]
cgroupsv2_devices = [
    "rbpf",
    "libbpf-sys",
    "errno",
    "libc",
    "nix/dir",
]
default = [
    "v1",
    "v2",
    "systemd",
]
systemd = [
    "v2",
    "nix/socket",
    "nix/uio",
]
v1 = []
v2 = []

[lib]
name = "libcgroups"
path = "src/lib.rs"

[[example]]
name = "bpf"
path = "examples/bpf.rs"

[[example]]
name = "systemd_io"
path = "examples/systemd_io.rs"

[dependencies.errno]
version = "0.3.14"
optional = true

[dependencies.fixedbitset]
version = "0.5.7"

[dependencies.libbpf-sys]
version = "1.6.3"
optional = true

[dependencies.libc]
version = "0.2.180"
optional = true

[dependencies.nix]
version = "0.29.0"
features = [
    "signal",
    "user",
    "fs",
]

[dependencies.oci-spec]
version = "~0.9.0"
features = ["runtime"]

[dependencies.pathrs]
version = "0.2.3"

[dependencies.procfs]
version = "0.17.0"

[dependencies.rbpf]
version = "0.4.1"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tracing]
version = "0.1.44"
features = ["attributes"]

[dev-dependencies.anyhow]
version = "1.0"

[dev-dependencies.clap]
version = "4.5.13"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.mockall]
version = "0.14.0"
features = []

[dev-dependencies.oci-spec]
version = "~0.9.0"
features = [
    "proptests",
    "runtime",
]

[dev-dependencies.quickcheck]
version = "1"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.serial_test]
version = "3.4.0"

[dev-dependencies.tempfile]
version = "3"