[[example]]
name = "chat-tokio"
required-features = ["tcp-tokio", "mdns"]
[dependencies.atomic]
version = "0.5.0"
[dependencies.bytes]
version = "1"
[dependencies.futures]
version = "0.3.1"
[dependencies.lazy_static]
version = "1.2"
[dependencies.libp2p-core]
version = "0.27.0"
[dependencies.libp2p-core-derive]
version = "0.21.0"
[dependencies.libp2p-floodsub]
optional = true
version = "0.27.0"
[dependencies.libp2p-gossipsub]
optional = true
version = "0.27.0"
[dependencies.libp2p-identify]
optional = true
version = "0.27.0"
[dependencies.libp2p-kad]
optional = true
version = "0.28.0"
[dependencies.libp2p-mplex]
optional = true
version = "0.27.0"
[dependencies.libp2p-noise]
optional = true
version = "0.29.0"
[dependencies.libp2p-ping]
optional = true
version = "0.27.0"
[dependencies.libp2p-plaintext]
optional = true
version = "0.27.0"
[dependencies.libp2p-pnet]
optional = true
version = "0.20.0"
[dependencies.libp2p-request-response]
optional = true
version = "0.9.0"
[dependencies.libp2p-swarm]
version = "0.27.0"
[dependencies.libp2p-uds]
optional = true
version = "0.27.0"
[dependencies.libp2p-wasm-ext]
optional = true
version = "0.27.0"
[dependencies.libp2p-yamux]
optional = true
version = "0.30.0"
[dependencies.multiaddr]
package = "parity-multiaddr"
version = "0.11.0"
[dependencies.parking_lot]
version = "0.11.0"
[dependencies.pin-project]
version = "1.0.0"
[dependencies.smallvec]
version = "1.0"
[dependencies.wasm-timer]
version = "0.2.4"
[dev-dependencies.async-std]
features = ["attributes"]
version = "1.6.2"
[dev-dependencies.env_logger]
version = "0.8.1"
[dev-dependencies.tokio]
features = ["io-util", "io-std", "macros", "rt", "rt-multi-thread"]
version = "1.0.1"
[features]
default = ["deflate", "dns", "floodsub", "identify", "kad", "gossipsub", "mdns", "mplex", "noise", "ping", "plaintext", "pnet", "request-response", "secp256k1", "tcp-async-io", "uds", "wasm-ext", "websocket", "yamux"]
deflate = ["libp2p-deflate"]
dns = ["libp2p-dns"]
floodsub = ["libp2p-floodsub"]
gossipsub = ["libp2p-gossipsub"]
identify = ["libp2p-identify"]
kad = ["libp2p-kad"]
mdns = ["libp2p-mdns"]
mplex = ["libp2p-mplex"]
noise = ["libp2p-noise"]
ping = ["libp2p-ping"]
plaintext = ["libp2p-plaintext"]
pnet = ["libp2p-pnet"]
request-response = ["libp2p-request-response"]
secp256k1 = ["libp2p-core/secp256k1"]
tcp-async-io = ["libp2p-tcp", "libp2p-tcp/async-io"]
tcp-tokio = ["libp2p-tcp", "libp2p-tcp/tokio"]
uds = ["libp2p-uds"]
wasm-ext = ["libp2p-wasm-ext"]
wasm-ext-websocket = ["wasm-ext", "libp2p-wasm-ext/websocket"]
websocket = ["libp2p-websocket"]
yamux = ["libp2p-yamux"]
[package]
authors = ["Parity Technologies <admin@parity.io>"]
categories = ["network-programming", "asynchronous"]
description = "Peer-to-peer networking library"
edition = "2018"
keywords = ["peer-to-peer", "libp2p", "networking"]
license = "MIT"
name = "libp2p"
repository = "https://github.com/libp2p/rust-libp2p"
version = "0.34.0"
[package.metadata.docs.rs]
all-features = true
[target."cfg(not(any(target_os = \"emscripten\", target_os = \"wasi\", target_os = \"unknown\")))".dependencies.libp2p-deflate]
optional = true
version = "0.27.0"
[target."cfg(not(any(target_os = \"emscripten\", target_os = \"wasi\", target_os = \"unknown\")))".dependencies.libp2p-dns]
optional = true
version = "0.27.0"
[target."cfg(not(any(target_os = \"emscripten\", target_os = \"wasi\", target_os = \"unknown\")))".dependencies.libp2p-mdns]
optional = true
version = "0.28.0"
[target."cfg(not(any(target_os = \"emscripten\", target_os = \"wasi\", target_os = \"unknown\")))".dependencies.libp2p-tcp]
optional = true
version = "0.27.0"
[target."cfg(not(any(target_os = \"emscripten\", target_os = \"wasi\", target_os = \"unknown\")))".dependencies.libp2p-websocket]
optional = true
version = "0.28.0"