[package]
name = "catcher-dns"
version = "0.3.13"
edition = "2021"
description = "Shared DNS resolver for catcher — cache, host mapping, and stale fallback"
license = "MIT"
repository = "https://github.com/eric8810/catcher"

[features]
default = ["hickory-dns"]
hickory-dns = ["dep:hickory-resolver", "dep:hickory-proto", "dep:moka"]
reqwest-resolver = ["dep:reqwest"]

[dependencies]
catcher-core = { path = "../catcher-core", version = "0.3.13" }
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", features = ["net", "rt", "time", "macros"] }
parking_lot = "0.12"
hickory-resolver = { version = "0.25", optional = true, features = ["tokio"] }
hickory-proto = { version = "0.25", optional = true }
moka = { version = "0.12", optional = true, features = ["future"] }
reqwest = { version = "0.13", optional = true, default-features = false }

[dev-dependencies]
serde_json = "1"
