# 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"
name = "etchdns"
version = "0.1.4"
authors = ["Frank Denis"]
build = false
include = [
    "/src/**/*.rs",
    "/Cargo.toml",
    "/LICENSE",
    "/README.md",
    "/etchdns.toml",
    "/allowed_zones.txt",
    "/nx_zones.txt",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A caching DNS proxy with advanced security features, WebAssembly hooks, and comprehensive protection mechanisms"
homepage = "https://github.com/jedisct1/etchdns"
documentation = "https://github.com/jedisct1/etchdns"
readme = "README.md"
keywords = [
    "dns",
    "caching",
    "proxy",
    "security",
    "webassembly",
]
categories = [
    "network-programming",
    "caching",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/jedisct1/etchdns"

[features]
default = []
hooks = ["extism"]

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

[[bin]]
name = "etchdns"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.bpf]
version = "0.1.4"

[dependencies.byteorder]
version = "1.5"

[dependencies.bytes]
version = "1.11"

[dependencies.clap]
version = "4.6"
features = ["derive"]

[dependencies.env_logger]
version = "0.11"

[dependencies.extism]
version = "1.21.0"
optional = true

[dependencies.form_urlencoded]
version = "1.2"

[dependencies.futures]
version = "0.3.32"

[dependencies.http-body-util]
version = "0.1"

[dependencies.httpdate]
version = "1.0.3"

[dependencies.hyper]
version = "1.10"
features = [
    "server",
    "http1",
]

[dependencies.hyper-util]
version = "0.1"
features = [
    "tokio",
    "server",
    "server-auto",
]

[dependencies.log]
version = "0.4"

[dependencies.privdrop]
version = "0.5.6"

[dependencies.rand]
version = "0.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sieve-cache]
version = "1.1.6"

[dependencies.slabigator]
version = "0.9"

[dependencies.thiserror]
version = "2.0"

[dependencies.time-format]
version = "1.2.2"

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

[dependencies.toml]
version = "1.1"

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = ["limit"]

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

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