# 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 = "tentacle" version = "0.6.6" authors = [ "piaoliu ", "Nervos Core Dev ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Minimal implementation for a multiplexed p2p network framework." readme = "README.md" keywords = [ "network", "peer-to-peer", ] categories = [ "network-programming", "asynchronous", ] license = "MIT" repository = "https://github.com/nervosnetwork/tentacle" [package.metadata.docs.rs] all-features = false features = [ "tokio-runtime", "tokio-timer", "upnp", "ws", "unstable", "tls", ] no-default-features = true rustc-args = [ "--cfg", "docsrs", ] [lib] name = "tentacle" path = "src/lib.rs" [[example]] name = "block_send" path = "examples/block_send.rs" [[example]] name = "heavy_task_schedule" path = "examples/heavy_task_schedule.rs" [[example]] name = "simple" path = "examples/simple.rs" [[example]] name = "simple_using_spawn" path = "examples/simple_using_spawn.rs" [[example]] name = "use_poll" path = "examples/use_poll.rs" [[test]] name = "test_before_function" path = "tests/test_before_function.rs" [[test]] name = "test_block_future_task" path = "tests/test_block_future_task.rs" [[test]] name = "test_block_send" path = "tests/test_block_send.rs" [[test]] name = "test_block_send_session" path = "tests/test_block_send_session.rs" [[test]] name = "test_close" path = "tests/test_close.rs" [[test]] name = "test_dial" path = "tests/test_dial.rs" [[test]] name = "test_dial_unsupported_order" path = "tests/test_dial_unsupported_order.rs" [[test]] name = "test_disconnect" path = "tests/test_disconnect.rs" [[test]] name = "test_kill" path = "tests/test_kill.rs" [[test]] name = "test_large_pending_messge" path = "tests/test_large_pending_messge.rs" [[test]] name = "test_peer_id" path = "tests/test_peer_id.rs" [[test]] name = "test_priority" path = "tests/test_priority.rs" [[test]] name = "test_protocol_open" path = "tests/test_protocol_open.rs" [[test]] name = "test_protocol_open_close_on_spawn" path = "tests/test_protocol_open_close_on_spawn.rs" [[test]] name = "test_session_handle_open" path = "tests/test_session_handle_open.rs" [[test]] name = "test_session_protocol_open_close" path = "tests/test_session_protocol_open_close.rs" [[test]] name = "test_session_protocol_order" path = "tests/test_session_protocol_order.rs" [[test]] name = "test_tcp_upgrade_mod" path = "tests/test_tcp_upgrade_mod.rs" [[test]] name = "test_tls_dial" path = "tests/test_tls_dial.rs" [[test]] name = "test_tls_reconnect" path = "tests/test_tls_reconnect.rs" [[test]] name = "test_uninterrupter_poll" path = "tests/test_uninterrupter_poll.rs" [[test]] name = "tls_common" path = "tests/tls_common.rs" [dependencies.async-io] version = "1" optional = true [dependencies.async-std] version = "1" features = ["unstable"] optional = true [dependencies.async-trait] version = "0.1" [dependencies.bytes] version = "1.0.0" [dependencies.futures] version = "0.3.0" [dependencies.futures-timer] version = "3.0.2" optional = true [dependencies.httparse] version = "1.9" optional = true [dependencies.igd] version = "0.15" optional = true package = "igd-next" [dependencies.log] version = "0.4" [dependencies.molecule] version = "0.8.0" [dependencies.multiaddr] version = "0.3.4" package = "tentacle-multiaddr" [dependencies.nohash-hasher] version = "0.2" [dependencies.parking_lot] version = "0.12" optional = true [dependencies.secio] version = "0.6.2" package = "tentacle-secio" [dependencies.thiserror] version = "1.0" [dependencies.tokio] version = "1.0.0" features = ["macros"] [dependencies.tokio-rustls] version = "0.26.0" optional = true [dependencies.tokio-tungstenite] version = "0.24" optional = true [dependencies.tokio-util] version = "0.7.0" features = ["codec"] [dependencies.yamux] version = "0.3.0" default-features = false package = "tokio-yamux" [dev-dependencies.crossbeam-channel] version = "0.5" [dev-dependencies.env_logger] version = "0.6.0" [dev-dependencies.futures-test] version = "0.3.5" [dev-dependencies.systemstat] version = "0.2" [features] async-runtime = [ "async-std", "async-io", "yamux/generic-timer", ] async-timer = ["async-runtime"] default = [ "tokio-runtime", "tokio-timer", ] generic-timer = [ "futures-timer", "yamux/generic-timer", ] openssl-vendored = ["secio/openssl-vendored"] secio-async-trait = ["secio/async-trait"] tls = ["tokio-rustls"] tokio-runtime = [ "tokio/io-util", "tokio/net", "tokio/rt-multi-thread", ] tokio-timer = [ "yamux/tokio-timer", "tokio/time", "tokio-runtime", ] unstable = [] upnp = ["igd"] wasm-timer = [ "futures-timer", "yamux/wasm", "futures-timer/wasm-bindgen", ] ws = [ "tokio-tungstenite", "httparse", ] [target.'cfg(not(target_family = "wasm"))'.dependencies.rand] version = "0.8" [target.'cfg(not(target_family = "wasm"))'.dependencies.socket2] version = "0.5.0" features = ["all"] [target.'cfg(target_family = "wasm")'.dependencies.js-sys] version = "0.3" [target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen] version = "0.2" [target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen-futures] version = "0.4" [target."cfg(unix)".dependencies.libc] version = "0.2" [target."cfg(unix)".dev-dependencies.nix] version = "0.29" features = ["signal"] default-features = false [target."cfg(windows)".dependencies.winapi] version = "0.3.7" features = [ "minwindef", "ws2def", "winerror", "heapapi", ]