-
-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathCargo.toml
More file actions
120 lines (106 loc) · 3.35 KB
/
Copy pathCargo.toml
File metadata and controls
120 lines (106 loc) · 3.35 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[package]
name = "vproxy"
version = "2.5.5"
authors = ["gngppz@gmail.com"]
description = "A high-performance HTTP/HTTPS/SOCKS5 proxy server"
repository = "https://github.com/0x676e67/vproxy"
categories = ["network-programming", "command-line-utilities"]
keywords = ["http", "https", "socks5", "proxy", "server"]
readme = "README.md"
license = "GPL-3.0"
edition = "2024"
rust-version = "1.97"
include = ["README.md", "LICENSE", "src/**/*.rs"]
[dependencies]
base64 = "0.22.0"
cidr = "0.3.0"
dirs = "6.0.0"
thiserror = "2.0.17"
tokio = { version = "1.48.0", features = [
"net",
"rt",
"macros",
"io-util",
"signal",
"sync",
"time",
] }
tokio-util = { version = "0.7.19", features = ["rt"] }
clap = { version = "4.5.53", features = ["derive", "env"] }
self_update = { version = "0.42.0", default-features = false, features = [
"rustls",
"archive-tar",
"compression-flate2",
] }
fxhash = "0.2.1"
futures-util = { version = "0.3.30", default-features = false }
pingora-runtime = "0.8.1"
socket2 = { version = "0.6.1", features = ["all"] }
# tracing
tracing = "0.1.43"
tracing-subscriber = { version = "0.3.22", features = ["env-filter"] }
# http
http = "1.4.0"
hyper = "1.8.1"
hyper-util = { version = "0.1.18", default-features = false, features = ["server", "http1", "client-legacy"] }
http-body-util = "0.1.3"
rustls-pki-types = { version = "1.13.1" }
rustls-pemfile = { version = "2.2.0" }
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
tokio-rustls = { version = "0.26.4", default-features = false, features = [
"tls12",
] }
rcgen = "0.14.5"
h3 = "0.0.8"
h3-datagram = "0.0.2"
h3-quinn = { version = "0.0.10", features = ["datagram"] }
quinn = { version = "0.11", default-features = false, features = [
"runtime-tokio",
"rustls-ring",
] }
# socks5
bytes = "1.11.0"
smallvec = "1.15.0"
pin-project-lite = "0.2.16"
percent-encoding = "2.3.2"
sfv = { version = "0.15.0", default-features = false, features = ["parsed-types"] }
# memory allocator
tcmalloc = { version = "0.3.0", optional = true }
snmalloc-rs = { version = "0.3.8", optional = true }
rpmalloc = { version = "0.2.2", optional = true }
jemallocator = { package = "tikv-jemallocator", version = "0.6.1", optional = true }
mimalloc = { version = "0.1.48", default-features = false, optional = true }
[target.'cfg(unix)'.dependencies]
libc = "0.2.189"
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
rustix = { version = "1.1.4", features = ["net"] }
[target.'cfg(not(any(target_os = "linux", target_os = "android")))'.dependencies]
quinn-udp = "0.5.14"
[target.'cfg(target_os = "linux")'.dependencies]
sysctl = "0.7.1"
rtnetlink = "0.18"
netlink-packet-route = "0.25.1"
futures = "0.3.30"
realm_io = "0.5.3"
sdjournal = "=0.1.21"
unitbus = { version = "=0.1.7", default-features = false, features = [
"blocking",
"config",
"rt-tokio",
] }
[target.'cfg(any(target_os = "illumos", target_os = "ios", target_os = "macos", target_os = "solaris", target_os = "tvos", target_os = "visionos", target_os = "watchos"))'.dependencies]
nix = "0.30.1"
[features]
default = ["mimalloc"]
jemalloc = ["jemallocator"]
tcmalloc = ["tcmalloc/bundled"]
snmalloc = ["snmalloc-rs"]
rpmalloc = ["dep:rpmalloc"]
mimalloc = ["dep:mimalloc"]
[profile.release]
codegen-units = 1
incremental = false
lto = "fat"
opt-level = 3
panic = "abort"
strip = true