# 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"
name = "catcher-dns"
version = "0.3.13"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared DNS resolver for catcher — cache, host mapping, and stale fallback"
readme = "README.md"
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"]

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

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

[dependencies.hickory-proto]
version = "0.25"
optional = true

[dependencies.hickory-resolver]
version = "0.25"
features = ["tokio"]
optional = true

[dependencies.moka]
version = "0.12"
features = ["future"]
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.reqwest]
version = "0.13"
optional = true
default-features = false

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

[dependencies.tokio]
version = "1"
features = [
    "net",
    "rt",
    "time",
    "macros",
]

[dev-dependencies.serde_json]
version = "1"
