-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
70 lines (51 loc) · 1.29 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
[package]
name = "bt-rust"
version = "0.1.0"
edition = "2021"
[dependencies]
# error convenient handling
anyhow = "1.0.68"
thiserror = "1.0.38"
# log crate
log = "0.4.17"
# serlization and deserialization
serde = "1.0.152"
serde_bencoded = "0.3.1"
# serde_bencode = "0.2"
serde_derive = "1.0.152"
serde_bytes = "0.11.8"
# sha-1
sha1 = "0.10.5"
# asynchronous crate
tokio = { version = "1.25.0", features = ["full"] }
tokio-util = { version = "0.7.4", features = ["codec"] }
futures = "0.3.26"
# http crate
url = "2.3.1"
reqwest = "0.11.13"
percent-encoding = "2.2.0"
# for handling byte value
bytes = "1.3.0"
# bitfield
bitvec = "1.0.1"
# lru strategy cache
lru = "0.12.1"
# create tempfile or tempdir for test quickly
tempfile = "3.3.0"
# encode from hex code
hex = "0.4.3"
# global static statment
once_cell = "1.17.0"
# random engine
rand = "0.8.5"
# make assertions more readable
pretty_assertions = "1.3.0"
# TODO: using the nix::uio::Iovec is Deprecated, need fix to use IoSlice or IoSliceMut
# but the pwritev and the preadv still being used.
[dev-dependencies]
# start local test serer
mockito = "1.0.0"
[target.x86_64-unknown-linux-gnu.dependencies]
nix = {version = "0.27.1", features = ["uio"]}
[target.aarch64-apple-darwin.dependencies]
nix = {version = "0.27.1", features = ["uio"]}