# 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 = "2024"
rust-version = "1.92.0"
name = "herolib-virt"
version = "0.3.13"
authors = ["PlanetFirst <info@incubaid.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Virtualization and container management for herolib (buildah, nerdctl, kubernetes)"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/herolib/herolib_rust"
resolver = "2"

[features]
default = ["rhai"]
full = [
    "rhai",
    "kubernetes",
]
kubernetes = [
    "dep:kube",
    "dep:k8s-openapi",
    "dep:tokio-retry",
    "dep:governor",
    "dep:tower",
]
rhai = ["dep:rhai"]

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

[[example]]
name = "01_basic_operations"
path = "examples/rust/kubernetes/01_basic_operations.rs"
required-features = ["kubernetes"]

[[example]]
name = "02_registry_deployment"
path = "examples/rust/kubernetes/02_registry_deployment.rs"
required-features = ["kubernetes"]

[[example]]
name = "03_registry_build_and_push"
path = "examples/rust/kubernetes/03_registry_build_and_push.rs"
required-features = ["kubernetes"]

[dependencies.anyhow]
version = "1.0"

[dependencies.base64]
version = "0.22"

[dependencies.dirs]
version = "6.0"

[dependencies.glob]
version = "0.3"

[dependencies.governor]
version = "0.10"
optional = true

[dependencies.herolib-core]
version = "0.3.13"

[dependencies.herolib-os]
version = "0.3.13"

[dependencies.hyper]
version = "0.14"
features = [
    "client",
    "http1",
    "http2",
]

[dependencies.hyperlocal]
version = "0.8"

[dependencies.k8s-openapi]
version = "0.26"
features = ["v1_32"]
optional = true

[dependencies.kube]
version = "2.0"
features = [
    "client",
    "config",
    "derive",
    "rustls-tls",
    "webpki-roots",
]
optional = true
default-features = false

[dependencies.libc]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.once_cell]
version = "1.21"

[dependencies.regex]
version = "1.8"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "blocking",
    "rustls-tls-webpki-roots",
]
default-features = false

[dependencies.rhai]
version = "1.23.6"
features = ["sync"]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.tempfile]
version = "3.23"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.48"
features = ["full"]

[dependencies.tokio-retry]
version = "0.3"
optional = true

[dependencies.tower]
version = "0.5"
features = [
    "timeout",
    "limit",
]
optional = true

[dependencies.url]
version = "2.4"

[dependencies.uuid]
version = "1.18"
features = [
    "v4",
    "serde",
]

[dependencies.which]
version = "6.0"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.lazy_static]
version = "1.4"

[dev-dependencies.tempfile]
version = "3.5"

[dev-dependencies.tokio-test]
version = "0.4"

[target.'cfg(target_os = "linux")'.dependencies.nix]
version = "0.30"

[target.'cfg(target_os = "linux")'.dependencies.virtiofsd]
version = "1.13"

[target."cfg(unix)".dependencies.nix]
version = "0.30"

[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = [
    "Win32_Foundation",
    "Win32_System_Threading",
    "Win32_Storage_FileSystem",
]
