Files
youki/crates/libcgroups/Cargo.toml
github-actions[bot]andyouki-dev-bot[bot] 696ed8ceba Release for v0.8.0 (#3666)
* [tagpr] prepare for the next release

* [tagpr] update CHANGELOG.md

---------

Co-authored-by: youki-dev-bot[bot] <360156225+youki-dev-bot[bot]@users.noreply.github.com>
2026-11-23 20:42:36 +09:00

50 lines
1.8 KiB
INI

[package]
name = "libcgroups"
version = "0.8.0" # MARK: Version
description = "Library for cgroup"
license = "Apache-2.0"
repository = "https://github.com/youki-dev/youki"
homepage = "https://youki-dev.github.io/youki/"
readme = "README.md"
authors = ["youki team"]
edition = "2024"
rust-version = "1.85.0"
autoexamples = true
keywords = ["youki", "container", "cgroups"]
[features]
default = ["v1", "v2", "systemd"]
v1 = []
v2 = []
# The systemd manager attaches the eBPF device filter itself, over the one systemd derives
# from DeviceAllow, so it cannot be built without it. This makes "systemd cgroupsv2_devices"
# the same build as "systemd"; scripts/features_test.sh lists only the latter.
systemd = ["v2", "cgroupsv2_devices", "nix/socket", "nix/uio"]
cgroupsv2_devices = ["rbpf", "libbpf-sys", "errno", "libc", "nix/dir"]
[dependencies]
nix = { workspace = true, features = ["signal", "user", "fs"] }
procfs = { workspace = true }
pathrs = { workspace = true }
oci-spec = { workspace = true }
fixedbitset = { workspace = true }
serde = { workspace = true, features = ["derive"] }
rbpf = { workspace = true, optional = true }
libbpf-sys = { workspace = true, optional = true }
errno = { workspace = true, optional = true }
libc = { workspace = true, optional = true }
thiserror = { workspace = true }
tracing = { workspace = true, features = ["attributes"] }
[dev-dependencies]
anyhow = { workspace = true }
oci-spec = { workspace = true, features = ["proptests"] }
quickcheck = { workspace = true }
mockall = { workspace = true, features = [] }
clap = { workspace = true, features = ["std", "color", "help", "usage", "error-context", "suggestions"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
env_logger = { workspace = true }
serial_test = { workspace = true }
tempfile = { workspace = true }