-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
73 lines (64 loc) · 2.8 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
[package]
name = "hath-rust"
version = "1.7.1"
edition = "2021"
build = "build.rs"
[dependencies]
arc-swap = "1.7"
async-stream = "0.3"
axum = { version = "0.7", default-features = false, features = ["http1", "matched-path"] }
bytes = "1.6"
chrono = { version = "0.4", default-features = false, features = [ "now" ] }
clap = { version = "4.5", features = ["derive", "wrap_help"] }
const_format = "0.2.32"
filesize = "0.2"
filetime = "0.2"
futures = "0.3"
hex = "0.4"
http-body = "1.0"
http-body-util = "0.1"
hyper = { version = "1.3", features = ["http1", "server"] }
hyper-util = { version = "0.1", features = ["tokio"] }
inquire = "0.7"
log = { version = "0.4", features = ["std"] }
mime = "0.3"
openssl = { version = "*", features = ["vendored"] }
parking_lot = { version = "0.12", features = ["hardware-lock-elision", "deadlock_detection"] }
pin-project-lite = "0.2"
rand = { version = "0.8", default-features = false, features = ["alloc", "getrandom", "small_rng"] }
regex-lite = "0.1.6"
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "stream", "socks"] }
rustls = { version = "0.23.11", default-features = false, features = ["brotli", "ring", "std", "tls12"] }
scopeguard = "1.2"
tempfile = "3.10"
tokio = { version = "1", features = ["full", "parking_lot"] }
tokio-openssl = "0.6"
tokio-stream = { version = "0.1", default-features = false, features = ["fs"] }
tower = { version = "0.4", features = ["util", "timeout"] }
tower-http = { version = "0.5", features = ["fs"] }
unicode-segmentation = "1.11.0"
webpki-roots = "0.26.3"
# cpufeatures not support all platforms
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64"))'.dependencies]
cpufeatures = "0.2"
[target.'cfg(not(any(target_env = "msvc", target_os = "macos")))'.dependencies]
tikv-jemallocator = { version = "0.6", features = ["background_threads", "unprefixed_malloc_on_supported_platforms"] }
[target.'cfg(target_os = "macos")'.dependencies]
tikv-jemallocator = { version = "0.6" } # jemalloc not support background threads and unprefix on macos
[target.'cfg(unix)'.dependencies]
rustix = { version = "0.38.34", features = ["fs"] }
[target.'cfg(windows)'.dependencies]
tray-icon = { version = "0.14.3", default-features = false }
windows = { version = "0.57", features = ["Win32_Foundation", "Win32_System_Console", "Win32_UI_WindowsAndMessaging", "Win32_Storage_FileSystem"] }
tao = "0.28"
[build-dependencies]
openssl-src = { version = "300", features = ["weak-crypto"] }
vergen-gix = "1.0.0"
[patch.crates-io]
url = { git = "https://github.com/servo/rust-url", tag = "idna-v1.0.1" }
form_urlencoded = { git = "https://github.com/servo/rust-url", tag = "idna-v1.0.1" }
percent-encoding = { git = "https://github.com/servo/rust-url", tag = "idna-v1.0.1" }
[profile.release]
opt-level = "s"
lto = true
strip = true