mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-13 11:21:21 +00:00
56 lines
1.9 KiB
TOML
56 lines
1.9 KiB
TOML
[package]
|
|
name = "libp2p-mdns"
|
|
edition = "2021"
|
|
rust-version = "1.62.0"
|
|
version = "0.43.0"
|
|
description = "Implementation of the libp2p mDNS discovery method"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
license = "MIT"
|
|
repository = "https://github.com/libp2p/rust-libp2p"
|
|
keywords = ["peer-to-peer", "libp2p", "networking"]
|
|
categories = ["network-programming", "asynchronous"]
|
|
|
|
[dependencies]
|
|
async-io = { version = "1.3.1", optional = true }
|
|
data-encoding = "2.3.2"
|
|
futures = "0.3.26"
|
|
if-watch = "3.0.0"
|
|
libp2p-core = { version = "0.39.0", path = "../../core" }
|
|
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
|
|
log = "0.4.14"
|
|
rand = "0.8.3"
|
|
smallvec = "1.6.1"
|
|
socket2 = { version = "0.4.0", features = ["all"] }
|
|
tokio = { version = "1.19", default-features = false, features = ["net", "time"], optional = true}
|
|
trust-dns-proto = { version = "0.22.0", default-features = false, features = ["mdns", "tokio-runtime"] }
|
|
void = "1.0.2"
|
|
|
|
[features]
|
|
tokio = ["dep:tokio", "if-watch/tokio"]
|
|
async-io = ["dep:async-io", "if-watch/smol"]
|
|
|
|
[dev-dependencies]
|
|
async-std = { version = "1.9.0", features = ["attributes"] }
|
|
env_logger = "0.10.0"
|
|
libp2p-noise = { path = "../../transports/noise" }
|
|
libp2p-swarm = { path = "../../swarm", features = ["tokio", "async-std"] }
|
|
libp2p-tcp = { path = "../../transports/tcp", features = ["tokio", "async-io"] }
|
|
libp2p-yamux = { path = "../../muxers/yamux" }
|
|
tokio = { version = "1.19", default-features = false, features = ["macros", "rt", "rt-multi-thread", "time"] }
|
|
|
|
[[test]]
|
|
name = "use-async-std"
|
|
required-features = ["async-io"]
|
|
|
|
[[test]]
|
|
name = "use-tokio"
|
|
required-features = ["tokio"]
|
|
|
|
|
|
# Passing arguments to the docsrs builder in order to properly document cfg's.
|
|
# More information: https://docs.rs/about/builds#cross-compiling
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
rustc-args = ["--cfg", "docsrs"]
|