# 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.63.0" name = "libcontainer" version = "0.4.1" authors = ["youki team"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Library for container control" homepage = "https://containers.github.io/youki" readme = "README.md" keywords = [ "youki", "container", "cgroups", ] license-file = "LICENSE" repository = "https://github.com/containers/youki" [lib] name = "libcontainer" path = "src/lib.rs" [dependencies.bitflags] version = "2.6.0" [dependencies.caps] version = "0.5.5" [dependencies.chrono] version = "0.4" features = [ "clock", "serde", ] default-features = false [dependencies.fastrand] version = "^2.1.1" [dependencies.futures] version = "0.3" features = ["thread-pool"] [dependencies.libc] version = "0.2.158" [dependencies.libcgroups] version = "0.4.1" default-features = false [dependencies.libseccomp] version = "0.3.0" optional = true [dependencies.nc] version = "0.9.3" [dependencies.nix] version = "0.28.0" features = [ "socket", "sched", "mount", "mman", "resource", "dir", "term", "hostname", ] [dependencies.oci-spec] version = "0.6.8" features = ["runtime"] [dependencies.once_cell] version = "1.19.0" [dependencies.prctl] version = "1.0.0" [dependencies.procfs] version = "0.16.0" [dependencies.protobuf] version = "= 3.2.0" [dependencies.regex] version = "1.10.6" features = [ "std", "unicode-perl", ] default-features = false [dependencies.rust-criu] version = "0.4.0" [dependencies.safe-path] version = "0.1.0" [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.thiserror] version = "1.0.63" [dependencies.tracing] version = "0.1.40" features = ["attributes"] [dev-dependencies.anyhow] version = "1.0" [dev-dependencies.oci-spec] version = "~0.6.8" features = [ "proptests", "runtime", ] [dev-dependencies.quickcheck] version = "1" [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.serial_test] version = "3.1.1" [dev-dependencies.tempfile] version = "3" [features] cgroupsv2_devices = ["libcgroups/cgroupsv2_devices"] default = [ "systemd", "v2", "v1", "libseccomp", ] libseccomp = ["dep:libseccomp"] systemd = [ "libcgroups/systemd", "v2", ] v1 = ["libcgroups/v1"] v2 = ["libcgroups/v2"]