1
0
mirror of https://github.com/containers/youki synced 2024-11-23 01:11:58 +01:00
youki/crates/libcgroups/Cargo.toml

46 lines
1.3 KiB
INI
Raw Normal View History

2021-08-01 22:49:31 +02:00
[package]
2021-10-21 15:57:27 +02:00
name = "libcgroups"
version = "0.4.1" # MARK: Version
description = "Library for cgroup"
license-file = "../../LICENSE"
repository = "https://github.com/containers/youki"
homepage = "https://containers.github.io/youki"
readme = "README.md"
authors = ["youki team"]
2021-10-23 16:32:47 +02:00
edition = "2021"
rust-version = "1.58.1"
autoexamples = true
keywords = ["youki", "container", "cgroups"]
2021-08-01 22:49:31 +02:00
[features]
2021-11-30 22:42:12 +01:00
default = ["v1", "v2", "systemd"]
v1 = []
v2 = []
systemd = ["v2", "nix/socket", "nix/uio"]
cgroupsv2_devices = ["rbpf", "libbpf-sys", "errno", "libc", "nix/dir"]
2021-08-01 22:49:31 +02:00
[dependencies]
nix = { version = "0.28.0", features = ["signal", "user", "fs"] }
procfs = "0.16.0"
oci-spec = { version = "~0.7.0", features = ["runtime"] }
fixedbitset = "0.5.7"
2021-08-01 22:49:31 +02:00
serde = { version = "1.0", features = ["derive"] }
rbpf = { version = "0.3.0", optional = true }
libbpf-sys = { version = "1.4.5", optional = true }
errno = { version = "0.3.9", optional = true }
libc = { version = "0.2.161", optional = true }
thiserror = "1.0.66"
tracing = { version = "0.1.40", features = ["attributes"] }
2021-08-01 22:49:31 +02:00
[dev-dependencies]
Adopt `thiserror` for libcgroups (#1872) * convert systemd controllers to thiserror Signed-off-by: squili <74628488+squili@users.noreply.github.com> * finish systemd manager except for the CgroupManager impl Signed-off-by: squili <74628488+squili@users.noreply.github.com> * refactor controller traits to be internal Signed-off-by: squili <74628488+squili@users.noreply.github.com> * convert v1 controllers to thiserror Signed-off-by: squili <74628488+squili@users.noreply.github.com> * convert v2 controllers to thiserror Signed-off-by: squili <74628488+squili@users.noreply.github.com> * make StatsProvider an internal trait Signed-off-by: squili <74628488+squili@users.noreply.github.com> * replace v1 stats provider anyhow with thiserror Signed-off-by: squili <74628488+squili@users.noreply.github.com> * remove anyhow from v2 stats providers Signed-off-by: squili <74628488+squili@users.noreply.github.com> * fix lints Signed-off-by: squili <74628488+squili@users.noreply.github.com> * get rid of doc test error Signed-off-by: squili <74628488+squili@users.noreply.github.com> * convert managers from anyhow to thiserror Signed-off-by: squili <74628488+squili@users.noreply.github.com> * fix lints Signed-off-by: squili <74628488+squili@users.noreply.github.com> * get rid of the rest of the references to anyhow Signed-off-by: squili <74628488+squili@users.noreply.github.com> * AnyManager -> AnyCgroupManager Signed-off-by: squili <74628488+squili@users.noreply.github.com> * fix formatting Signed-off-by: squili <74628488+squili@users.noreply.github.com> * fix lint in libcgroups devices Signed-off-by: squili <74628488+squili@users.noreply.github.com> --------- Signed-off-by: squili <74628488+squili@users.noreply.github.com>
2023-05-03 07:59:55 +02:00
anyhow = "1.0"
oci-spec = { version = "~0.7.0", features = ["proptests", "runtime"] }
2021-08-01 22:49:31 +02:00
quickcheck = "1"
mockall = { version = "0.13.0", features = [] }
clap = "4.1.6"
2021-08-20 05:03:07 +02:00
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
env_logger = "0.11"
serial_test = "3.1.1"
tempfile = "3"