-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
90 lines (80 loc) · 2.15 KB
/
Cargo.toml
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
[package]
name = "hypercore-protocol"
version = "0.6.1"
license = "MIT OR Apache-2.0"
description = "Replication protocol for Hypercore feeds"
authors = [
"Franz Heinzmann (Frando) <[email protected]>",
"Timo Tiuraniemi <[email protected]>"
]
documentation = "https://docs.rs/hypercore-protocol"
repository = "https://github.com/datrs/hypercore-protocol-rs"
readme = "README.md"
edition = "2021"
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.9", features = ["risky-raw-split"] }
bytes = "1"
rand = "0.8"
blake2 = "0.10"
hex = "0.4"
async-trait = "0.1"
tracing = "0.1"
pretty-hash = "0.4"
futures-timer = "3"
futures-lite = "1"
sha2 = "0.10"
curve25519-dalek = "4"
crypto_secretstream = "0.2"
[dependencies.hypercore]
version = "0.14.0"
default-features = false
[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"] }
env_logger = "0.7.1"
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"
log = "0.4"
test-log = { version = "0.2.11", default-features = false, features = ["trace"] }
tracing-subscriber = { version = "0.3.16", features = ["env-filter", "fmt"] }
[features]
default = ["tokio", "sparse"]
wasm-bindgen = [
"futures-timer/wasm-bindgen"
]
sparse = ["hypercore/sparse"]
cache = ["hypercore/cache"]
tokio = ["hypercore/tokio"]
async-std = ["hypercore/async-std"]
# 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_interop_tests
js_interop_tests = []
[profile.bench]
# debug = true
[profile.release]
# debug = true
[[bench]]
name = "throughput"
harness = false
[[bench]]
name = "pipe"
harness = false