forked from shadowsocks/shadowsocks-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
153 lines (141 loc) · 4.63 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[package]
name = "shadowsocks-rust"
version = "1.8.21"
authors = ["Shadowsocks Contributors"]
description = "shadowsocks is a fast tunnel proxy that helps you bypass firewalls."
repository = "https://github.com/shadowsocks/shadowsocks-rust"
readme = "README.md"
documentation = "https://docs.rs/shadowsocks-rust"
keywords = ["shadowsocks", "proxy", "socks", "socks5", "firewall"]
license = "MIT"
edition = "2018"
[badges]
maintenance = { status = "passively-maintained" }
[lib]
name = "shadowsocks"
[[bin]]
name = "sslocal"
path = "src/bin/local.rs"
[[bin]]
name = "ssserver"
path = "src/bin/server.rs"
[[bin]]
name = "ssurl"
path = "src/bin/ssurl.rs"
[[bin]]
name = "ssmanager"
path = "src/bin/manager.rs"
[profile.release]
lto = "fat"
codegen-units = 1
incremental = false
panic = "abort"
[features]
default = ["ring-aead-ciphers", "sodium", "rc4", "aes-cfb", "aes-ctr", "trust-dns", "local-http", "local-http-rustls", "local-tunnel", "local-socks4"]
# Enables AEAD ciphers that depending on ring
# aes-128-gcm, aes-256-gcm, chacha20-ietf-poly1305
ring-aead-ciphers = ["ring"]
# Enables ciphers that depending on libsodium
# chacha20, xchacha20, chacha20-ietf
# salsa20, xsalsa20
# xchacha20-ietf-poly1305
sodium = ["libsodium-sys"]
rc4 = ["openssl"]
aes-cfb = ["openssl"]
aes-ctr = ["openssl"]
aes-pmac-siv = ["miscreant"]
camellia-cfb = ["openssl"]
# Uses single-threaded scheduler instead of default multi-threaded
single-threaded = []
# Enables trust-dns for replacing tokio's builtin DNS resolver
trust-dns = ["trust-dns-resolver"]
dns-over-tls = ["trust-dns", "trust-dns-resolver/dns-over-rustls"]
dns-over-https = ["trust-dns", "trust-dns-resolver/dns-over-https-rustls"]
# Enable vendored OpenSSL
# rust-openssl tries to find OpenSSL system-wide by default,
# by enabling this feature will try to build or use prebuilt OpenSSL libraries
openssl-vendored = ["native-tls/vendored", "openssl/vendored"]
# Enable DNS-relay
# Currently is only used in Android
local-dns-relay = []
# Enable client flow statistic report
# Currently is only used in Android
local-flow-stat = []
# Enable HTTP protocol for sslocal
local-http = ["hyper", "http", "tower"]
local-http-native-tls = ["tokio-native-tls", "native-tls"]
local-http-rustls = ["tokio-rustls", "webpki-roots", "rustls-native-certs"]
# Enable REDIR protocol for sslocal
# (transparent proxy)
local-redir = []
# Enable tunnel protocol for sslocal
local-tunnel = []
# Enable SOCKS4/4a protocol for sslocal
local-socks4 = []
# Enable jemalloc for binaries
jemalloc = ["jemallocator"]
# Enable bundled tcmalloc
tcmalloc-vendored = ["tcmalloc/bundled"]
[dependencies]
log = "0.4"
rand = "0.7"
clap = { version = "2.33", features = ["suggestions", "wrap_help"] }
log4rs = "0.13"
openssl = { version = "0.10", optional = true }
libc = "^0.2.68"
tokio = { version = "^0.2.11", features = ["macros", "net", "signal", "time", "sync", "process", "rt-threaded", "rt-core", "stream", "io-util", "parking_lot"] }
tokio-native-tls = { version = "0.1", optional = true }
native-tls = { version = "0.2", optional = true }
tokio-rustls = { version = "0.14", optional = true }
webpki-roots = { version = "0.20", optional = true }
rustls-native-certs = { version = "0.4", optional = true }
futures = "0.3"
json5 = "0.2"
base64 = "0.13"
bytes = "0.5"
byteorder = "1"
ring = { version = "0.16", optional = true }
md-5 = "0.9"
digest = "0.9"
typenum = "1.11"
qrcode = { version = "0.12", default-features = false }
serde_urlencoded = "0.7"
serde = { version = "1.0", features = ["derive"] }
url = "2.1"
byte_string = "1.0"
libsodium-sys = { version = "0.2", optional = true }
miscreant = { version = "0.5", default-features = false, features = ["std", "pmac"], optional = true }
trust-dns-resolver = { version = "0.19", optional = true }
trust-dns-proto = "0.19"
hkdf = "0.10"
hmac = "0.10"
sha-1 = "0.9"
lru_time_cache = "0.11"
hyper = { version = "0.13", optional = true }
http = { version = "0.2", optional = true }
tower = { version = "0.3", optional = true }
pin-project = "1.0"
socket2 = "0.3"
cfg-if = "1.0"
bloomfilter = "^1.0.2"
spin = "0.7"
mio = "0.6"
mio-uds = "0.6"
serde_json = "1.0"
regex = "1"
strum = "0.19"
strum_macros = "0.19"
iprange = "^0.6.3"
ipnet = "2.2"
async-trait = "0.1"
lazy_static = "1.4"
jemallocator = { version = "0.3", optional = true }
mimalloc = { version = "0.1", optional = true }
tcmalloc = { version = "0.3", optional = true }
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["mswsock", "winsock2"] }
# Just for the ioctl call macro
[target.'cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
nix = "0.19"
[dev-dependencies]
env_logger = "0.8"