This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
forked from x0f5c3/manic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
95 lines (84 loc) · 2.33 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
91
92
93
94
95
[package]
name = "manic-cli"
version = "0.1.0"
authors = ["x0f5c3 <[email protected]>", "fanyang89 <[email protected]>"]
edition = "2018"
description = "Multithread file downloader & uploader"
readme = "README.md"
repository = "https://github.com/zperf/manic-cli"
license = "MIT"
keywords = ["download", "http", "async"]
categories = [
"asynchronous",
"web-programming::http-client",
"network-programming",
]
exclude = [".idea", ".gtm"]
[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"x86_64-pc-windows-gnu",
"aarch64-unknown-linux-gnu",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["rustls", "json", "progress", "async"]
progress = ["indicatif"]
json = ["reqwest/json"]
rustls = ["reqwest/rustls-tls"]
openssl = ["reqwest/native-tls"]
threaded = ["reqwest/blocking", "rusty_pool", "rustls", "futures-channel"]
async = ["tokio", "futures", "rustls"]
[dependencies]
url = "2.2.2"
sha2 = "0.10.6"
indicatif = { version = "0.17.2", optional = true }
tracing = { version = "0.1.28", features = ["log"] }
futures = { version = "0.3.17", optional = true }
rayon = "1.5.1"
derive_builder = "0.12.0"
bytes = "1.1.0"
thiserror = "1.0.30"
md-5 = "0.10.5"
clap = { version = "4.4.2", features = ["derive"] }
anyhow = "1.0.75"
[dependencies.futures-channel]
version = "0.3.18"
optional = true
[dependencies.rusty_pool]
version = "0.7.0"
default-features = false
optional = true
[dependencies.derive_more]
version = "0.99.16"
default-features = false
features = ["display", "from", "error"]
[dependencies.tokio]
version = "1.14.0"
features = ["fs", "rt-multi-thread", "macros", "rt"]
optional = true
[dependencies.reqwest]
version = "0.11.6"
default-features = false
features = ["stream"]
[dev-dependencies]
pretty_env_logger = "0.4.0"
log = "0.4.14"
criterion = { version = "0.4.0", features = ["async_tokio"] }
reqwest = { version = "0.11.6", default-features = false, features = [
"blocking",
] }
tempfile = "3.2.0"
warp = "0.3.1"
tokio = { version = "1.12.0", features = ["macros"] }
[[bench]]
name = "remote_benchmark"
harness = false
required-features = ["async"]
[[bench]]
name = "remote_threaded_benchmark"
harness = false
required-features = ["threaded"]