[package]
name = "proxmox-acme-api"
version = "0.1.2"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
exclude.workspace = true
description = "ACME API implementation"

[dependencies]
anyhow.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
base64 = { workspace = true, optional = true }
tokio = { workspace = true, optional = true, features = ["fs"] }
hyper = { workspace = true, optional = true }
futures = { workspace = true, optional = true }
http = { workspace = true, optional = true }
log = { workspace = true, optional = true }
nix = { workspace = true, optional = true }
hex = { workspace = true, optional = true }
lazy_static = { workspace = true, optional = true }

libc = { workspace = true, optional = true }
openssl = { workspace = true, optional = true }
foreign-types = { workspace = true, optional = true }


proxmox-serde.workspace = true
proxmox-section-config = { workspace = true, optional = true }
proxmox-rest-server = { workspace = true, optional = true }
proxmox-router = { workspace = true, optional = true }
proxmox-sys = { workspace = true, optional = true }
proxmox-schema = { workspace = true, features = ["api-macro", "api-types"] }
proxmox-uuid = { workspace = true, optional = true }
proxmox-time = { workspace = true, optional = true }
proxmox-acme = { workspace = true, features = ["api-types"] }
proxmox-config-digest = { workspace = true, optional = true }
proxmox-product-config = { workspace = true, optional = true }

[features]
default = []
impl = [
    "dep:proxmox-uuid",
    "dep:proxmox-time",
    "dep:proxmox-config-digest",
    "proxmox-config-digest?/openssl",
    "dep:proxmox-product-config",
    "proxmox-acme/impl",
    "proxmox-acme/async-client",
    "dep:proxmox-section-config",
    "dep:hex",
    "dep:lazy_static",
    "dep:log",
    "dep:nix",
    "dep:tokio",
    "dep:futures",
    "dep:http",
    "dep:hyper",
    "dep:proxmox-sys",
    "dep:proxmox-rest-server",
    "dep:proxmox-router",
    "dep:base64",
    "dep:libc",
    "dep:openssl",
    "dep:foreign-types",
]