[package]
name = "hypercore-protocol"
version = "0.7.0"
license = "MIT OR Apache-2.0"
description = "Replication protocol for Hypercore feeds"
authors = [
"Franz Heinzmann (Frando) <frando@unbiskant.org>",
"Timo Tiuraniemi <timo.tiuraniemi@iki.fi>"
]
documentation = "https://docs.rs/hypercore-protocol"
repository = "https://github.com/datrs/hypercore-protocol-rs"
readme = "README.md"
edition = "2024"
keywords = ["dat", "p2p", "replication", "hypercore", "protocol"]
categories = [
"asynchronous",
"concurrency",
"cryptography",
"data-structures",
"encoding",
]
[lib]
bench = false
[dependencies]
async-channel = "1"
snow = { version = "0.10", features = ["risky-raw-split"] }
rand = "0.8"
blake2 = "0.10"
hex = "0.4"
tracing = "0.1"
pretty-hash = "0.4"
futures-timer = "3"
futures-lite = "1"
sha2 = "0.10"
curve25519-dalek = "4"
crypto_secretstream = "0.2"
futures = "0.3.31"
compact-encoding = "2"
thiserror = "2.0.12"
hypercore_handshake = "0.6.0"
[dev-dependencies.hypercore]
features = ["shared-core"]
version = "0.16.0"
[dependencies.hypercore_schema]
version = "0.2.0"
[dev-dependencies]
async-std = { version = "1.12.0", features = ["attributes", "unstable"] }
async-compat = "0.2.1"
tokio = { version = "1.27.0", features = ["macros", "net", "process", "rt", "rt-multi-thread", "sync", "time"] }
anyhow = "1.0.28"
instant = "0.1"
criterion = { version = "0.4", features = ["async_std"] }
pretty-bytes = "0.2.2"
duplexify = "1.1.0"
sluice = "0.5.4"
futures = "0.3.13"
tracing-subscriber = { version = "0.3.19", features = ["env-filter", "fmt"] }
tracing-tree = "0.4.0"
tokio-util = { version = "0.7.14", features = ["compat"] }
uint24le_framing = { version = "0.2.0" }
[dev-dependencies.rusty_nodejs_repl]
version = "0.4.0"
features = ["serde", "integration_utils"]
[features]
wasm-bindgen = [
"futures-timer/wasm-bindgen"
]
js_tests = []
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.3", features = ["wasm_js"] }
[profile.bench]
[profile.release]
[[bench]]
name = "throughput"
harness = false
[[bench]]
name = "pipe"
harness = false