# 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.76"
name = "pelagos"
version = "0.61.2"
build = "build.rs"
exclude = [
    "scripts/",
    "docs/",
    "alpine-rootfs/",
    ".github/",
    "ONGOING_TASKS.md",
    "CLAUDE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast Linux container runtime — OCI-compatible, namespaces, cgroups v2, seccomp, networking, image management"
homepage = "https://github.com/pelagos-containers/pelagos"
readme = "README.md"
keywords = [
    "container",
    "runtime",
    "linux",
    "namespaces",
    "oci",
]
categories = [
    "os::linux-apis",
    "command-line-utilities",
    "virtualization",
]
license = "Apache-2.0"
repository = "https://github.com/pelagos-containers/pelagos"

[features]
embedded-wasm = [
    "dep:wasmtime",
    "dep:wasmtime-wasi",
]

[lib]
name = "pelagos"
path = "src/lib.rs"

[[bin]]
name = "pelagos"
path = "src/main.rs"

[[bin]]
name = "pelagos-dns"
path = "src/bin/pelagos-dns.rs"

[[bin]]
name = "pelagos-dockerd"
path = "src/bin/pelagos-dockerd/main.rs"

[[bin]]
name = "pelagos-shim-wasm"
path = "src/bin/pelagos-shim-wasm.rs"

[[example]]
name = "full_stack_smoke"
path = "examples/full_stack_smoke/main.rs"

[[example]]
name = "net_debug"
path = "examples/net_debug/main.rs"

[[example]]
name = "seccomp_demo"
path = "examples/seccomp_demo/main.rs"

[[example]]
name = "secure_container"
path = "examples/secure_container/main.rs"

[[example]]
name = "web_pipeline"
path = "examples/web_pipeline/main.rs"

[[test]]
name = "dockerd_smoke"
path = "tests/dockerd_smoke.rs"

[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"

[dependencies.bitflags]
version = "2.6"

[dependencies.bzip2]
version = "0.5"
features = ["static"]

[dependencies.cgroups-rs]
version = "0.5.0"

[dependencies.clap]
version = "3.1.6"
features = ["derive"]

[dependencies.containerd-shim]
version = "0.10"

[dependencies.env_logger]
version = "0.11"

[dependencies.flate2]
version = "1"

[dependencies.ignore]
version = "0.4"

[dependencies.libc]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.nix]
version = "0.31.1"
features = [
    "process",
    "sched",
    "mount",
    "fs",
    "term",
    "poll",
    "signal",
    "ioctl",
]

[dependencies.oci-client]
version = "0.16"

[dependencies.seccompiler]
version = "0.5.0"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.tar]
version = "0.4"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "net",
    "time",
    "io-util",
    "process",
    "fs",
    "signal",
    "macros",
]

[dependencies.toml]
version = "0.8"
features = ["parse"]

[dependencies.ureq]
version = "2"

[dependencies.wasmtime]
version = "42"
features = [
    "cranelift",
    "runtime",
    "wat",
    "component-model",
]
optional = true
default-features = false

[dependencies.wasmtime-wasi]
version = "42"
features = [
    "p1",
    "p2",
]
optional = true
default-features = false

[dependencies.xz2]
version = "0.1"
features = ["static"]

[dev-dependencies.bollard]
version = "0.17"
features = ["ssl"]
default-features = false

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.serial_test]
version = "3"

[target.'cfg(target_os = "linux")'.dependencies.axum]
version = "0.7"

[target.'cfg(target_os = "linux")'.dependencies.futures-util]
version = "0.3"

[target.'cfg(target_os = "linux")'.dependencies.hyper]
version = "1"
features = ["http1"]

[target.'cfg(target_os = "linux")'.dependencies.hyper-util]
version = "0.1"
features = [
    "tokio",
    "service",
]

[target.'cfg(target_os = "linux")'.dependencies.tower]
version = "0.4"

[target.'cfg(target_os = "linux")'.dependencies.uuid]
version = "1"
features = ["v4"]
