-
Notifications
You must be signed in to change notification settings - Fork 24
/
Cargo.toml
103 lines (90 loc) · 2.81 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
[workspace]
package.version = "0.11.0"
members = [".", "ffi/py"]
[package]
name = "ws-tool"
version.workspace = true
authors = ["PrivateRookie <996514515@qq.com>"]
edition = "2021"
description = "an easy to use websocket tool"
license-file = "LICENSE"
readme = "README.md"
homepage = "https://github.com/PrivateRookie/ws-tool"
repository = "https://github.com/PrivateRookie/ws-tool"
keywords = ["websocket", "proxy", "network"]
# [profile.release]
# debug = true
# strip = false
# opt-level = 3
# lto = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
http = { package = "http", version = "1" }
thiserror = "1"
rand = "0.8"
base64 = "0.20"
tracing = "0.1"
bytes = "1"
httparse = "1.8"
sha1 = "0.10"
simdutf8 = "0.1.4"
tokio = { version = "1", features = ["rt", "net", "io-util"], optional = true }
# tls deps
tokio-rustls = { version = "0.23", optional = true }
tokio-native-tls = { version = "0.3.1", optional = true }
rustls-pemfile = { version = "1.0.1", optional = true }
webpki = { version = "0.22", optional = true }
webpki-roots = { version = "0.22.5", optional = true }
rustls-connector = { version = "0.16", optional = true, features = [
"webpki-roots-certs",
] }
native-tls = { version = "0.2", optional = true }
# deflate deps
libz-sys = { version = "1.1.8", optional = true }
# extsion deps
poem = { version = "2", optional = true }
axum = { version = "0.7", optional = true }
hyper = { version = "1", optional = true }
hyper-util = { version = "0.1", optional = true }
# proxy deps
[features]
default = ["sync", "simple", "sync_tls_rustls"]
sync = []
sync_tls_rustls = ["sync", "rustls-connector", "rustls-pemfile"]
sync_tls_native = ["sync", "native-tls"]
async = ["tokio"]
async_tls_rustls = [
"async",
"tokio-rustls",
"webpki",
"webpki-roots",
"rustls-pemfile",
"rustls-connector",
]
async_tls_native = ["async", "tokio-native-tls"]
deflate = ["libz-sys"]
deflate_static = ["libz-sys/static"]
deflate_ng = ["libz-sys/zlib-ng"]
poem = ["dep:poem", "async"]
axum = ["dep:axum", "dep:hyper", "dep:hyper-util", "async"]
simple = ["deflate"]
[dev-dependencies]
fastrand = "2.0.0"
tokio = { version = "1", features = ["full"] }
tracing-subscriber = "0.3"
clap = { version = "4.0", features = ["derive"] }
rcgen = "0.11"
dashmap = { version = "5.4.0", features = ["serde"] }
serde_json = { version = "1" }
serde = { version = "1", features = ["derive"] }
hproxy = { version = "0.1", features = ["sync", "async"] }
sproxy = { version = "0.1", features = ["sync", "async"] }
tabled = "0.13.0"
socks = "0.3.4"
# benchmark deps
tungstenite = "0.20.0"
criterion = { version = "0.5", features = ["html_reports"] }
fastwebsockets = { version = "0.5.0", features = ["upgrade"] }
hyper = "0.14.27"
uuid = { version = "1.6.1", features = ["v4", "serde"] }
rayon = "1.8.0"