[package]
edition = "2021"
rust-version = "1.85"
name = "zlayer-agent"
version = "0.12.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Container runtime agent using libcontainer/youki"
readme = "README.md"
keywords = [
"container",
"runtime",
"youki",
"libcontainer",
"orchestration",
]
categories = [
"os",
"virtualization",
]
license = "Apache-2.0"
repository = "https://github.com/BlackLeafDigital/ZLayer"
[features]
default = ["nat"]
docker = ["dep:bollard"]
hcs-runtime = ["dep:zlayer-gcs"]
nat = ["zlayer-overlay/nat"]
s3 = [
"zlayer-init-actions/s3",
"zlayer-registry/s3",
"dep:zlayer-storage",
]
wasm = [
"dep:wasmtime",
"dep:wasmtime-wasi",
"dep:wasmtime-wasi-http",
"dep:http",
"dep:http-body-util",
"dep:hyper",
"dep:anyhow",
"dep:sha2",
]
windows-debug = [
"hcs-runtime",
"zlayer-gcs/windows-debug",
]
wsl = [
"dep:zlayer-wsl",
"dep:anyhow",
]
youki-runtime = ["dep:libcontainer"]
zlayer-gcs = ["dep:zlayer-gcs"]
[lib]
name = "zlayer_agent"
path = "src/lib.rs"
[[test]]
name = "composite_dispatch_e2e"
path = "tests/composite_dispatch_e2e.rs"
[[test]]
name = "docker_runtime_test"
path = "tests/docker_runtime_test.rs"
[[test]]
name = "gpu_spec_shape"
path = "tests/gpu_spec_shape.rs"
[[test]]
name = "infrastructure_wiring"
path = "tests/infrastructure_wiring.rs"
[[test]]
name = "macos_mps_smoke"
path = "tests/macos_mps_smoke.rs"
[[test]]
name = "macos_sandbox_e2e"
path = "tests/macos_sandbox_e2e.rs"
[[test]]
name = "multi_node_service_subnets"
path = "tests/multi_node_service_subnets.rs"
[[test]]
name = "overlay_setup_race"
path = "tests/overlay_setup_race.rs"
[[test]]
name = "wasip2_integration_test"
path = "tests/wasip2_integration_test.rs"
[[test]]
name = "wasm_e2e_test"
path = "tests/wasm_e2e_test.rs"
[[test]]
name = "wasm_runtime_test"
path = "tests/wasm_runtime_test.rs"
[[test]]
name = "windows_cluster_join_e2e"
path = "tests/windows_cluster_join_e2e.rs"
[[test]]
name = "windows_hcs_e2e"
path = "tests/windows_hcs_e2e.rs"
[[test]]
name = "windows_hcs_hyperv_e2e"
path = "tests/windows_hcs_hyperv_e2e.rs"
[[test]]
name = "windows_overlay_e2e"
path = "tests/windows_overlay_e2e.rs"
[[test]]
name = "youki_e2e"
path = "tests/youki_e2e.rs"
[dependencies.anyhow]
version = "1"
optional = true
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.bollard]
version = "0.20"
features = [
"ssl",
"time",
"pipe",
"http",
]
optional = true
default-features = false
[dependencies.bytes]
version = "1"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.cron]
version = "0.15"
[dependencies.futures-util]
version = "0.3"
[dependencies.http]
version = "1"
optional = true
[dependencies.http-body-util]
version = "0.1"
optional = true
[dependencies.hyper]
version = "1"
optional = true
[dependencies.ipnet]
version = "2"
[dependencies.ipnetwork]
version = "0.21.1"
[dependencies.jsonwebtoken]
version = "9"
[dependencies.libc]
version = "0.2"
[dependencies.nix]
version = "0.31"
features = [
"fs",
"signal",
"process",
"user",
"sched",
"mount",
"term",
]
[dependencies.num_cpus]
version = "1.16"
[dependencies.oci-client]
version = "0.15"
features = ["rustls-tls-native-roots"]
default-features = false
[dependencies.oci-spec]
version = "0.8"
[dependencies.parking_lot]
version = "0.12"
[dependencies.prost-types]
version = "0.14.3"
[dependencies.rcgen]
version = "0.13"
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"json",
]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_yaml]
version = "0.9"
[dependencies.sha2]
version = "0.10"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.49"
features = [
"full",
"tracing",
]
[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
[dependencies.tonic]
version = "0.14.5"
features = [
"tls-ring",
"tls-webpki-roots",
"transport",
]
[dependencies.tracing]
version = "0.1"
[dependencies.ulid]
version = "1.2.1"
[dependencies.uuid]
version = "1.19"
features = [
"v4",
"serde",
]
[dependencies.wasmtime]
version = "41"
features = [
"async",
"cranelift",
"component-model",
]
optional = true
default-features = false
[dependencies.wasmtime-wasi]
version = "41"
optional = true
[dependencies.wasmtime-wasi-http]
version = "41"
optional = true
[dependencies.zlayer-cluster-rpc]
version = "0.12.2"
[dependencies.zlayer-core]
version = "0.12.2"
[dependencies.zlayer-gcs]
version = "0.12.2"
optional = true
[dependencies.zlayer-init-actions]
version = "0.12.2"
[dependencies.zlayer-observability]
version = "0.12.2"
[dependencies.zlayer-overlay]
version = "0.12.2"
[dependencies.zlayer-overlayd]
version = "0.12.2"
[dependencies.zlayer-paths]
version = "0.12.2"
[dependencies.zlayer-proxy]
version = "0.12.2"
[dependencies.zlayer-registry]
version = "0.12.2"
features = [
"persistent",
"local",
]
[dependencies.zlayer-scheduler]
version = "0.12.2"
[dependencies.zlayer-secrets]
version = "0.12.2"
[dependencies.zlayer-spec]
version = "0.12.2"
[dependencies.zlayer-storage]
version = "0.12.2"
optional = true
[dependencies.zlayer-types]
version = "0.12.2"
[dependencies.zlayer-vzagent]
version = "0.12.2"
[dev-dependencies.base64]
version = "0.22"
[dev-dependencies.hex]
version = "0.4"
[dev-dependencies.ipnet]
version = "2"
[dev-dependencies.rand]
version = "0.9"
[dev-dependencies.serial_test]
version = "3.5.0"
[dev-dependencies.tempfile]
version = "3.24.0"
[dev-dependencies.wat]
version = "1.244.0"
[target.'cfg(target_os = "linux")'.dependencies.libcontainer]
version = "0.6.1-zlayer.5"
optional = true
package = "zlayer-libcontainer"
[target.'cfg(target_os = "linux")'.dependencies.netlink-packet-route]
version = "0.19"
[target.'cfg(target_os = "linux")'.dependencies.rtnetlink]
version = "0.14"
[target.'cfg(target_os = "linux")'.dependencies.tar]
version = "0.4"
[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6.2"
[target.'cfg(target_os = "macos")'.dependencies.dirs]
version = "5"
[target.'cfg(target_os = "macos")'.dependencies.dispatch2]
version = "0.3.1"
[target.'cfg(target_os = "macos")'.dependencies.libloading]
version = "0.8"
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.4"
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3.2"
[target.'cfg(target_os = "macos")'.dependencies.objc2-virtualization]
version = "0.3.2"
[target.'cfg(target_os = "windows")'.dependencies.flate2]
version = "1"
[target.'cfg(target_os = "windows")'.dependencies.hex]
version = "0.4"
[target.'cfg(target_os = "windows")'.dependencies.nvml-wrapper]
version = "0.12.1"
[target.'cfg(target_os = "windows")'.dependencies.sha2]
version = "0.10"
[target.'cfg(target_os = "windows")'.dependencies.tar]
version = "0.4"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
"Win32_Foundation",
"Win32_Storage_FileSystem",
"Win32_Security",
"Win32_Security_Authorization",
"Win32_System_Threading",
"Win32_System_IO",
"Win32_System_HostComputeSystem",
"Win32_Storage_Vhd",
"Win32_System_SystemInformation",
"Win32_Graphics_Dxgi",
"Win32_System_Time",
]
[target.'cfg(target_os = "windows")'.dependencies.windows-registry]
version = "0.6.1"
[target.'cfg(target_os = "windows")'.dependencies.wmi]
version = "0.18.4"
[target.'cfg(target_os = "windows")'.dependencies.zlayer-hcs]
version = "0.12.2"
[target.'cfg(target_os = "windows")'.dependencies.zlayer-hns]
version = "0.12.2"
[target.'cfg(target_os = "windows")'.dependencies.zlayer-wsl]
version = "0.12.2"
optional = true
[target.'cfg(target_os = "windows")'.dependencies.zstd]
version = "0.13"
[lints.clippy]
all = "warn"
pedantic = "warn"
[lints.rust]
dead_code = "warn"
unsafe_code = "warn"