-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
70 lines (62 loc) · 1.74 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
[package]
name = "socks5-impl"
version = "0.6.0"
authors = ["ssrlive <[email protected]>"]
description = "Fundamental abstractions and async read / write functions for SOCKS5 protocol and Relatively low-level asynchronized SOCKS5 server implementation based on tokio"
categories = ["network-programming", "asynchronous"]
keywords = ["socks5", "socks", "proxy", "async", "network"]
edition = "2021"
readme = "README.md"
license = "GPL-3.0-or-later"
repository = "https://github.com/ssrlive/socks5-impl"
[features]
# default = ["serde", "client", "server", "tokio"]
client = ["tokio"]
serde = ["dep:serde"]
server = ["tokio"]
tokio = ["dep:tokio"]
[dependencies]
as-any = "0.3"
async-trait = "0.1"
byteorder = "1"
bytes = "1"
percent-encoding = "2"
serde = { version = "1", features = ["derive"], optional = true }
thiserror = "2"
tokio = { version = "1", default-features = false, features = [
"net",
"io-util",
"time",
"macros",
"rt",
], optional = true }
[dev-dependencies]
clap = { version = "4", features = ["derive"] }
ctrlc2 = { version = "3", features = ["tokio", "termination"] }
dotenvy = "0.15"
env_logger = "0.11"
hickory-proto = "0.24"
log = "0.4"
moka = { version = "0.12", features = ["future"] }
rand = "0.8"
tokio = { version = "1", features = ["rt-multi-thread"] }
[[example]]
name = "demo-client"
path = "examples/demo-client.rs"
required-features = ["client"]
[[example]]
name = "demo-server"
path = "examples/demo-server.rs"
required-features = ["tokio"]
[[example]]
name = "dns-query"
path = "examples/dns-query.rs"
required-features = ["client"]
[[example]]
name = "s5-server"
path = "examples/s5-server.rs"
required-features = ["server"]
[[example]]
name = "udp-client"
path = "examples/udp-client.rs"
required-features = ["client"]