# 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 = "dyns"
version = "0.5.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DNS discovery and resolver support for DHTTP applications"
readme = "README.md"
keywords = [
    "dhttp",
    "dns",
    "mdns",
    "http3",
    "quic",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/genmeta/ddns"

[features]
default = []
dquic-network = [
    "dep:h3x",
    "h3x/dquic",
]
h3 = [
    "dep:dashmap",
    "dep:h3x",
    "h3x/hyper",
    "dep:http",
    "dep:http-body",
    "dep:http-body-util",
    "dep:url",
]
http = [
    "dep:dashmap",
    "dep:reqwest",
    "dep:rustls-native-certs",
]
mdns = [
    "dep:dashmap",
    "dep:flume",
    "dep:libc",
    "dep:socket2",
]
publishers = []
resolvers = []

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

[[example]]
name = "mdns_discover"
path = "examples/mdns_discover.rs"
required-features = ["mdns"]

[[example]]
name = "mdns_query"
path = "examples/mdns_query.rs"
required-features = ["mdns"]

[[example]]
name = "publish"
path = "examples/publish.rs"
required-features = ["h3"]

[[example]]
name = "query"
path = "examples/query.rs"
required-features = ["h3"]

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.bitfield-struct]
version = "0.13"

[dependencies.bytes]
version = "1"

[dependencies.dashmap]
version = "6"
optional = true

[dependencies.dhttp-identity]
version = "0.2.0"

[dependencies.dquic]
version = "0.6.0"

[dependencies.flume]
version = "0.12"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.h3x]
version = "0.5.0"
optional = true
default-features = false

[dependencies.http]
version = "1"
optional = true

[dependencies.http-body]
version = "1"
optional = true

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

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.nom]
version = "8"

[dependencies.rand]
version = "0.10"

[dependencies.reqwest]
version = "0.13"
features = [
    "charset",
    "http2",
    "json",
    "query",
    "rustls-no-provider",
    "system-proxy",
]
optional = true
default-features = false

[dependencies.ring]
version = "0.17"

[dependencies.rustls]
version = "0.23"
features = [
    "logging",
    "ring",
]
default-features = false

[dependencies.rustls-native-certs]
version = "0.8"
optional = true

[dependencies.rustls-pemfile]
version = "2"

[dependencies.snafu]
version = "0.9"

[dependencies.socket2]
version = "0.6"
features = ["all"]
optional = true

[dependencies.tokio]
version = "1"
features = [
    "time",
    "macros",
    "net",
    "sync",
    "rt",
    "rt-multi-thread",
    "io-util",
]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"
optional = true

[dependencies.x509-parser]
version = "0.18"
features = ["verify"]

[dev-dependencies.clap]
version = "4"
features = ["derive"]

[dev-dependencies.h3x]
version = "0.5.0"
features = ["dquic"]
default-features = false

[dev-dependencies.shellexpand]
version = "3"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
