# 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 = "lazydns"
version = "0.2.31"
authors = ["lazywalker <lazywalkerz@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A DNS server implementation in Rust, inspired by mosdns"
readme = "README.md"
keywords = [
    "dns",
    "smartdns",
    "doh",
    "dot",
    "doq",
]
categories = ["network-programming"]
license = "GPL-3.0-or-later"
repository = "https://github.com/lazywalker/lazydns"

[features]
admin = ["axum"]
cron = [
    "cronexpr",
    "time/local-offset",
    "time/parsing",
    "time/formatting",
]
default = ["log-ansi"]
doh = [
    "rustls",
    "rustls-pemfile",
    "tokio-rustls",
    "axum-server",
    "axum",
]
doq = [
    "rustls",
    "rustls-pemfile",
    "quinn",
]
dot = [
    "rustls",
    "rustls-pemfile",
    "tokio-rustls",
]
log = [
    "tracing-subscriber/env-filter",
    "tracing-subscriber/json",
    "tracing-subscriber/local-time",
    "time/local-offset",
    "time/macros",
]
log-ansi = [
    "log",
    "tracing-subscriber/ansi",
]
log-file = [
    "log",
    "tracing-appender",
]
metrics = [
    "axum",
    "prometheus",
]

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

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

[[example]]
name = "test_server"
path = "examples/test_server.rs"

[[test]]
name = "admin_server_test"
path = "tests/admin_server_test.rs"

[[test]]
name = "integration_doq"
path = "tests/integration_doq.rs"

[[test]]
name = "integration_ipset_nftset"
path = "tests/integration_ipset_nftset.rs"

[[test]]
name = "integration_save_hook"
path = "tests/integration_save_hook.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[[test]]
name = "integration_tls_doh_dot"
path = "tests/integration_tls_doh_dot.rs"

[[test]]
name = "logging_file_tests"
path = "tests/logging_file_tests.rs"

[[test]]
name = "plugin_builder_test"
path = "tests/plugin_builder_test.rs"

[[test]]
name = "server_test"
path = "tests/server_test.rs"

[dependencies.anyhow]
version = "1.0"

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

[dependencies.axum]
version = "0.8"
features = [
    "json",
    "query",
    "tokio",
    "macros",
    "http1",
]
optional = true
default-features = false

[dependencies.axum-server]
version = "0.7"
features = ["tls-rustls-no-provider"]
optional = true
default-features = false
package = "axum-server"

[dependencies.base64]
version = "0.21"

[dependencies.cronexpr]
version = "1.4"
optional = true

[dependencies.dashmap]
version = "6.1"

[dependencies.hickory-proto]
version = "0.24"

[dependencies.ipnet]
version = "2.9"

[dependencies.notify]
version = "6.1"

[dependencies.once_cell]
version = "1.19"

[dependencies.parking_lot]
version = "0.12"

[dependencies.paste]
version = "1.0"

[dependencies.pico-args]
version = "0.5"

[dependencies.prometheus]
version = "0.13"
optional = true

[dependencies.quinn]
version = "0.11"
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1.10"

[dependencies.reqwest]
version = "0.11"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.rustls]
version = "0.23"
features = ["ring"]
optional = true
default-features = false

[dependencies.rustls-pemfile]
version = "2.0"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.thiserror]
version = "2.0"

[dependencies.time]
version = "0.3"
optional = true
default-features = false

[dependencies.tokio]
version = "1.35"
features = [
    "rt",
    "signal",
    "macros",
    "process",
]
default-features = false

[dependencies.tokio-rustls]
version = "0.26"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-appender]
version = "0.2"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = ["fmt"]
optional = true
default-features = false

[dev-dependencies.rcgen]
version = "0.14"

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

[profile.dev]
opt-level = 0

[profile.full]
inherits = "minimal"

[profile.minimal]
opt-level = "z"
panic = "abort"
inherits = "release"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
split-debuginfo = "off"
strip = true

[profile.test]
opt-level = 1
