# 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 = "2021" rust-version = "1.58.1" name = "libcgroups" version = "0.4.1" authors = ["youki team"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Library for cgroup" homepage = "https://containers.github.io/youki" readme = "README.md" keywords = [ "youki", "container", "cgroups", ] license-file = "LICENSE" repository = "https://github.com/containers/youki" [lib] name = "libcgroups" path = "src/lib.rs" [[example]] name = "bpf" path = "examples/bpf.rs" [dependencies.errno] version = "0.3.9" optional = true [dependencies.fixedbitset] version = "0.5.7" [dependencies.libbpf-sys] version = "1.4.5" optional = true [dependencies.libc] version = "0.2.158" optional = true [dependencies.nix] version = "0.28.0" features = [ "signal", "user", "fs", ] [dependencies.oci-spec] version = "~0.6.8" features = ["runtime"] [dependencies.procfs] version = "0.16.0" [dependencies.rbpf] version = "0.2.0" optional = true [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.thiserror] version = "1.0.63" [dependencies.tracing] version = "0.1.40" features = ["attributes"] [dev-dependencies.anyhow] version = "1.0" [dev-dependencies.clap] version = "4.1.6" [dev-dependencies.env_logger] version = "0.11" [dev-dependencies.mockall] version = "0.13.0" features = [] [dev-dependencies.oci-spec] version = "~0.6.8" 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.1.1" [dev-dependencies.tempfile] version = "3" [features] cgroupsv2_devices = [ "rbpf", "libbpf-sys", "errno", "libc", "nix/dir", ] default = [ "v1", "v2", "systemd", ] systemd = [ "v2", "nix/socket", "nix/uio", ] v1 = [] v2 = []