[package]
name = "externaldns-webhook"
version = "2025.3.4"
description = "Interface (trait) for ExternalDns webhook."
edition = "2024"
license = "BSD-2-Clause"
homepage = "https://github.com/Magicloud/externaldns-webhook"
repository = "https://github.com/Magicloud/externaldns-webhook"
readme = "README.md"

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

[[example]]
name = "e_d"

[[example]]
name = "dumb"

[dependencies]
actix-web = { version = "4" }
anyhow = { version = "1.0" }
tokio = { version = "1.44", features = ["rt"] }
async-trait = { version = "0.1" }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
regex = { version = "1.11" }
serde_with = { version = "3.12" }
either = { version = "1.15" }
log = { version = "0.4" }
logcall = { version = "0.1" }
dashmap = { version = "6.1", features = ["serde"] }
prometheus = { version="0.13" }
metrics = { version = "0.24" }

[dev-dependencies]
env_logger = { version = "0.11" }
clap = { version = "4.5", features = ["derive"] }
nonempty = { version = "0.11" }
surrealdb = { version = "2.2", features = ["kv-surrealkv"] }
itertools = { version = "0.14" }
sha2 = { version = "0.10" }
metrics-prometheus = { version = "0.9" }

[profile.release]
strip = true
lto = true
codegen-units = 1
opt-level = "z"
panic = "abort"
