[package]
edition = "2024"
rust-version = "1.88.0"
name = "tentacle"
version = "0.7.4"
authors = [
"piaoliu <driftluo@foxmail.com>",
"Nervos Core Dev <dev@nervos.org>",
]
build = false
autolib = 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"
resolver = "2"
[package.metadata.docs.rs]
features = [
"tokio-runtime",
"tokio-timer",
"upnp",
"ws",
"unstable",
"tls",
]
all-features = false
no-default-features = true
rustc-args = [
"--cfg",
"docsrs",
]
[features]
default = [
"tokio-runtime",
"tokio-timer",
]
generic-timer = [
"futures-timer",
"yamux/generic-timer",
]
metrics = ["yamux/metrics"]
openssl-vendored = ["secio/openssl-vendored"]
secio-async = ["secio/async-sign"]
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",
]
[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_proxy_protocol"
path = "tests/test_proxy_protocol.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-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.16"
optional = true
package = "igd-next"
[dependencies.log]
version = "0.4"
[dependencies.molecule]
version = "0.9.0"
[dependencies.multiaddr]
version = "0.3.6"
package = "tentacle-multiaddr"
[dependencies.nohash-hasher]
version = "0.2"
[dependencies.parking_lot]
version = "0.12"
optional = true
[dependencies.secio]
version = "0.6.6"
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.28"
optional = true
[dependencies.tokio-util]
version = "0.7.0"
features = ["codec"]
[dependencies.url]
version = "2.5.4"
[dependencies.yamux]
version = "0.3.14"
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"
[target.'cfg(not(target_family = "wasm"))'.dependencies.fast-socks5]
version = "0.10.0"
[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",
]