[dependencies.async-io]
optional = true
version = "2.3.3"
[dependencies.async-std]
optional = true
version = "1.12.0"
[dependencies.data-encoding]
version = "2.6.0"
[dependencies.futures]
version = "0.3.30"
[dependencies.hickory-proto]
default-features = false
features = ["mdns"]
version = "0.24.1"
[dependencies.if-watch]
version = "3.2.0"
[dependencies.libp2p-core]
version = "0.42.0"
[dependencies.libp2p-identity]
version = "0.2.9"
[dependencies.libp2p-swarm]
version = "0.45.0"
[dependencies.rand]
version = "0.8.3"
[dependencies.smallvec]
version = "1.13.2"
[dependencies.socket2]
features = ["all"]
version = "0.5.7"
[dependencies.tokio]
default-features = false
features = ["net", "time"]
optional = true
version = "1.38"
[dependencies.tracing]
version = "0.1.37"
[dependencies.void]
version = "1.0.2"
[dev-dependencies.async-std]
features = ["attributes"]
version = "1.9.0"
[dev-dependencies.libp2p-noise]
version = "0.44.0"
[dev-dependencies.libp2p-swarm]
features = ["tokio", "async-std"]
version = "0.45.0"
[dev-dependencies.libp2p-tcp]
features = ["tokio", "async-io"]
version = "0.42.0"
[dev-dependencies.libp2p-yamux]
version = "0.45.2"
[dev-dependencies.tokio]
default-features = false
features = ["macros", "rt", "rt-multi-thread", "time"]
version = "1.38"
[dev-dependencies.tracing-subscriber]
features = ["env-filter"]
version = "0.3"
[features]
async-io = ["dep:async-io", "dep:async-std", "if-watch/smol"]
tokio = ["dep:tokio", "if-watch/tokio"]
[lints.clippy]
dbg_macro = "warn"
manual_let_else = "warn"
type_complexity = "allow"
unnecessary_wraps = "warn"
used_underscore_binding = "warn"
[lints.clippy.pedantic]
level = "allow"
priority = -1
[lints.rust]
unreachable_pub = "warn"
[package]
authors = ["Parity Technologies <admin@parity.io>"]
categories = ["network-programming", "asynchronous"]
description = "Implementation of the libp2p mDNS discovery method"
edition = "2021"
keywords = ["peer-to-peer", "libp2p", "networking"]
license = "MIT"
name = "libp2p-mdns"
repository = "https://github.com/libp2p/rust-libp2p"
rust-version = "1.75.0"
version = "0.46.0"
[package.metadata.docs.rs]
all-features = true
[[test]]
name = "use-async-std"
required-features = ["async-io"]
[[test]]
name = "use-tokio"
required-features = ["tokio"]