# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "tokio-yamux" version = "0.3.9" authors = [ "Linfeng Qian ", "Nervos Core Dev ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Rust implementation of Yamux" readme = "README.md" license = "MIT" repository = "https://github.com/nervosnetwork/tentacle" [lib] name = "tokio_yamux" path = "src/lib.rs" [[example]] name = "throughput_test" path = "examples/throughput_test.rs" [[example]] name = "yamux_simple" path = "examples/yamux_simple.rs" [dependencies.bytes] version = "1.0.0" [dependencies.futures] version = "0.3.0" [dependencies.futures-timer] version = "3.0.2" optional = true [dependencies.log] version = "0.4" [dependencies.nohash-hasher] version = "0.2" [dependencies.tokio] version = "1.0.0" [dependencies.tokio-util] version = "0.7.0" features = ["codec"] [dev-dependencies.bytesize] version = "1" [dev-dependencies.env_logger] version = "0.6" [dev-dependencies.rand] version = "0.8" [dev-dependencies.tokio] version = "1.0.0" features = [ "time", "net", "io-util", "rt", "rt-multi-thread", ] [features] default = ["tokio-timer"] generic-timer = ["futures-timer"] tokio-timer = ["tokio/time"] wasm = [ "generic-timer", "futures-timer/wasm-bindgen", ] [target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.web-time] version = "1.1.0"