[package]
name = "libp2p-tcp"
edition = "2021"
rust-version = "1.60.0"
description = "TCP/IP transport protocol for libp2p"
version = "0.39.0"
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.2.0", optional = true }
futures = "0.3.26"
futures-timer = "3.0"
if-watch = "3.0.0"
libc = "0.2.80"
libp2p-core = { version = "0.39.0", path = "../../core" }
log = "0.4.11"
socket2 = { version = "0.4.0", features = ["all"] }
tokio = { version = "1.19.0", default-features = false, features = ["net"], optional = true }
[features]
tokio = ["dep:tokio", "if-watch/tokio"]
async-io = ["dep:async-io", "if-watch/smol"]
[dev-dependencies]
async-std = { version = "1.6.5", features = ["attributes"] }
tokio = { version = "1.0.1", default-features = false, features = ["full"] }
env_logger = "0.10.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
rustc-args = ["--cfg", "docsrs"]