zlayer-agent 0.11.1

Container runtime agent using libcontainer/youki
Documentation
# 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.85"
name = "zlayer-agent"
version = "0.11.1"
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 = []
docker = ["dep:bollard"]
hcs-runtime = []
s3 = [
    "zlayer-init-actions/s3",
    "zlayer-registry/s3",
    "dep:zlayer-storage",
]
wasm = [
    "dep:wasmtime",
    "dep:wasmtime-wasi",
    "dep:wasmtime-wasi-http",
    "dep:bytes",
    "dep:http",
    "dep:http-body-util",
    "dep:hyper",
    "dep:anyhow",
    "dep:sha2",
]
wsl = [
    "dep:zlayer-wsl",
    "dep:anyhow",
]
youki-runtime = ["dep:libcontainer"]

[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 = "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 = "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_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.bollard]
version = "0.20"
features = [
    "ssl",
    "time",
    "pipe",
    "http",
]
optional = true
default-features = false

[dependencies.bytes]
version = "1"
optional = true

[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.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",
]

[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.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.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-core]
version = "0.11.1"

[dependencies.zlayer-init-actions]
version = "0.11.1"

[dependencies.zlayer-observability]
version = "0.11.1"

[dependencies.zlayer-overlay]
version = "0.11.1"

[dependencies.zlayer-paths]
version = "0.11.1"

[dependencies.zlayer-proxy]
version = "0.11.1"

[dependencies.zlayer-registry]
version = "0.11.1"
features = [
    "persistent",
    "local",
]

[dependencies.zlayer-scheduler]
version = "0.11.1"

[dependencies.zlayer-secrets]
version = "0.11.1"

[dependencies.zlayer-spec]
version = "0.11.1"

[dependencies.zlayer-storage]
version = "0.11.1"
optional = true

[dev-dependencies.rand]
version = "0.9"

[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.1"
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 = "macos")'.dependencies.dirs]
version = "5"

[target.'cfg(target_os = "macos")'.dependencies.libloading]
version = "0.8"

[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.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",
]

[target.'cfg(target_os = "windows")'.dependencies.zlayer-hcs]
version = "0.11.1"

[target.'cfg(target_os = "windows")'.dependencies.zlayer-hns]
version = "0.11.1"

[target.'cfg(target_os = "windows")'.dependencies.zlayer-wsl]
version = "0.11.1"
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"