-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCargo.toml
58 lines (49 loc) · 1.41 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
[package]
name = "mainline"
version = "5.0.0"
authors = ["nuh.dev"]
edition = "2018"
description = "Simple, robust, BitTorrent's Mainline DHT implementation"
homepage = "https://github.com/pubky/mainline"
license = "MIT"
keywords = ["bittorrent", "torrent", "dht", "kademlia", "mainline"]
categories = ["network-programming"]
repository = "https://github.com/pubky/mainline"
exclude = ["/docs/*", "/examples/*"]
[dependencies]
rand = "0.8.5"
serde_bencode = "^0.2.4"
serde = { version = "1.0.217", features = ["derive"] }
serde_bytes = "0.11.15"
thiserror = "2.0.11"
crc = "3.2.1"
sha1_smol = "1.0.1"
ed25519-dalek = "2.1.1"
tracing = "0.1"
lru = { version = "0.12.5", default-features = false }
dyn-clone = "1.0.18"
document-features = "0.2.10"
# `node` dependencies
flume = { version = "0.11.1", features = [], default-features = false, optional = true }
# `async` dependencies
futures-lite = { version = "2.6.0", default-features = false, optional = true }
[dev-dependencies]
clap = { version = "4.5.28", features = ["derive"] }
futures = "0.3.31"
tracing-subscriber = "0.3"
ctrlc = "3.4.5"
histo = "1.0.0"
rayon = "1.10"
dashmap = "6.1"
flume = "0.11.1"
colored = "2.0.0"
chrono = "0.4"
[features]
## Include [Dht] node.
node = ["dep:flume"]
## Enable [Dht::as_async()] to use [async_dht::AsyncDht].
async = ["node", "flume/async", "dep:futures-lite"]
full = ["async"]
default = ["full"]
[package.metadata.docs.rs]
all-features = true