-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCargo.toml
More file actions
96 lines (84 loc) · 2.31 KB
/
Cargo.toml
File metadata and controls
96 lines (84 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[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]
# benchmarks are using criterion
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"
]
# Used only in interoperability tests under tests/js-interop which use the javascript version of hypercore
# to verify that this crate works. To run them, use:
# cargo test --features js_tests
js_tests = []
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.3", features = ["wasm_js"] }
[profile.bench]
# debug = true
[profile.release]
# debug = true
[[bench]]
name = "throughput"
harness = false
[[bench]]
name = "pipe"
harness = false