-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathCargo.toml
78 lines (69 loc) · 1.95 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
[package]
name = "vproxy"
version = "1.3.0"
edition = "2021"
authors = ["gngppz@gmail.com"]
description = "An easy and powerful Rust HTTP/Socks5/HTTP2Socks5 Proxy"
readme = "README.md"
license = "MIT"
homepage = "https://github.com/0x676e67/vproxy"
repository = "https://github.com/0x676e67/vproxy"
rust-version = "1.76"
[dependencies]
base64 = "0.22.0"
cidr = "0.3.0"
thiserror = "1"
tokio = { version = "1", features = [
"net",
"rt-multi-thread",
"macros",
"io-util",
] }
rand = "0.8.5"
clap = { version = "4", features = ["derive", "env"] }
self-github-update = { version = "0.39", features = [
"archive-tar",
"compression-flate2",
] }
# for log
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
# for http
http = "1"
hyper = { version = "1", features = ["http1", "server"] }
hyper-util = { version = "0.1.9", features = ["full"] }
http-body-util = "0.1"
# for socks5
bytes = "1"
pin-project-lite = "0.2"
tokio-stream = "0.1.0"
percent-encoding = "2.3.1"
async-trait = "0.1.80"
# for memory allocator
tcmalloc = { version = "0.3.0", optional = true }
snmalloc-rs = { version = "0.3.4", optional = true }
rpmalloc = { version = "0.2.2", optional = true }
jemallocator = { package = "tikv-jemallocator", version = "0.6", optional = true }
mimalloc = { version = "0.1.39", default-features = false, optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
sysctl = "0.5.5"
rtnetlink = "0.14"
netlink-packet-route = "0.19"
futures = "0.3.30"
[target.'cfg(target_family = "unix")'.dependencies]
daemonize = "0.5.0"
nix = { version = "0.29.0", features = ["user", "signal", "resource"] }
sysinfo = { version = "0.30", default-features = false }
[features]
default = ["mimalloc"]
jemalloc = ["jemallocator"]
tcmalloc = ["tcmalloc/bundled"]
snmalloc = ["snmalloc-rs"]
rpmalloc = ["dep:rpmalloc"]
mimalloc = ["dep:mimalloc"]
[profile.release]
lto = true
opt-level = 'z'
codegen-units = 1
strip = true
panic = "abort"