-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
79 lines (75 loc) · 2.08 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
[package]
name = "socks-hub"
version = "0.1.14"
license = "MIT"
repository = "https://github.com/ssrlive/socks-hub"
homepage = "https://github.com/ssrlive/socks-hub"
authors = ["ssrlive", "cssivision <[email protected]>"]
description = "Convert http proxy or socks5 proxy to socks5 proxy."
readme = "README.md"
edition = "2021"
rust-version = "1.70"
[lib]
crate-type = ["staticlib", "cdylib", "lib"]
[features]
default = ["sockshub", "acl"]
acl = [
"idna",
"ipnet",
"iprange",
"once_cell",
"regex",
"socks5-impl",
"tokio",
"log",
]
base64 = ["dep:base64"]
sockshub = [
"base64",
"socks5-impl",
"tokio",
"ctrlc2",
"env_logger",
"serde",
"serde_derive",
"serde_json",
"clap",
"chrono",
"http-body-util",
"hyper",
"dotenvy",
"as-any",
"bytes",
"pin-project-lite",
"log",
]
[dependencies]
as-any = { version = "0.3", optional = true }
base64 = { version = "0.22", optional = true }
bytes = { version = "1.6", optional = true }
cfg-if = "1.0"
chrono = { version = "0.4", optional = true }
clap = { version = "4.5", features = ["derive"], optional = true }
ctrlc2 = { version = "3.5", features = [
"termination",
"tokio",
], optional = true }
dotenvy = { version = "0.15", optional = true }
env_logger = { version = "0.11", optional = true }
http-body-util = { version = "0.1", optional = true }
hyper = { version = "1.2", features = ["full"], optional = true }
idna = { version = "1.0", optional = true }
ipnet = { version = "2.9", optional = true }
iprange = { version = "0.6", optional = true }
log = { version = "0.4", optional = true }
once_cell = { version = "1.19", optional = true }
pin-project-lite = { version = "0.2", optional = true }
regex = { version = "1.10", optional = true }
serde = { version = "1.0", optional = true }
serde_derive = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
socks5-impl = { version = "0.5", optional = true }
tokio = { version = "1", features = ["full"], optional = true }
[[bin]]
name = "socks-hub"
required-features = ["sockshub", "acl"]