Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
85 lines (74 loc) · 2.41 KB
/
Copy pathCargo.toml
File metadata and controls
85 lines (74 loc) · 2.41 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
[package]
name = "socks5-impl"
version = "0.10.3"
authors = ["ssrlive <ssrlivebox@gmail.com>"]
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 = "2024"
readme = "README.md"
license = "GPL-3.0-or-later"
repository = "https://github.com/ssrlive/socks5-impl"
[package.metadata.docs.rs]
all-features = true
[features]
address = ["dep:bytes", "dep:thiserror"]
user-key = ["dep:percent-encoding"]
proxy-parameters = ["address", "user-key", "dep:url"]
protocol = ["proxy-parameters"]
client = ["tokio", "protocol"]
serde = ["dep:serde"]
server = ["tokio", "protocol"]
tokio = ["dep:async-trait", "dep:tokio"]
# default = ["protocol", "serde", "client", "server"]
default = ["protocol"]
[dependencies]
async-trait = { version = "0.1.92", optional = true }
bytes = { version = "1.12.1", optional = true }
percent-encoding = { version = "2.3.2", optional = true }
serde = { version = "1.0.229", features = ["derive"], optional = true }
thiserror = { version = "2.0.21", optional = true }
tokio = { version = "1.53.3", default-features = false, features = [
"net",
"io-util",
"time",
"macros",
"rt",
], optional = true }
url = { version = "2.5.8", optional = true }
[dev-dependencies]
clap = { version = "4.6.7", features = ["derive", "wrap_help"] }
ctrlc2 = { version = "4.0.0", features = ["async", "termination"] }
dotenvy = "0.15.7"
env_logger = "0.11.11"
hickory-proto = "0.26.3"
log = "0.4.34"
moka = { version = "0.12.16", features = ["future"] }
rand = "0.10.3"
serde_json = "1.0.154"
tokio = { version = "1.53.3", features = ["rt-multi-thread"] }
tokio-util = { version = "0.7.20", features = [] }
[[example]]
name = "demo-client"
path = "examples/demo-client.rs"
required-features = ["client"]
[[example]]
name = "demo-server"
path = "examples/demo-server.rs"
required-features = ["tokio", "protocol"]
[[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"]
[[example]]
name = "echo-server"
path = "examples/echo-server.rs"
required-features = ["tokio", "protocol"]