[package]
name = "tokio-yamux"
version = "0.3.8"
license = "MIT"
repository = "https://github.com/nervosnetwork/tentacle"
description = "Rust implementation of Yamux"
authors = ["Linfeng Qian <thewawar@gmail.com>", "Nervos Core Dev <dev@nervos.org>"]
edition = "2021"
[dependencies]
bytes = "1.0.0"
futures = { version = "0.3.0" }
tokio = { version = "1.0.0" }
tokio-util = { version = "0.7.0", features = ["codec"] }
log = "0.4"
nohash-hasher = "0.2"
futures-timer = { version = "3.0.2", optional = true }
[dev-dependencies]
env_logger = "0.6"
rand = "0.8"
bytesize = "1"
tokio = { version = "1.0.0", features = ["time", "net", "io-util", "rt", "rt-multi-thread"] }
once_cell = "1.8.0"
[features]
default = ["tokio-timer"]
tokio-timer = ["tokio/time"]
generic-timer = ["futures-timer"]
wasm = ["generic-timer", "futures-timer/wasm-bindgen"]