1
1
[package ]
2
2
name = " socks-hub"
3
- version = " 0.1.10 "
3
+ version = " 0.1.11 "
4
4
license = " MIT"
5
5
repository = " https://github.com/ssrlive/socks-hub"
6
6
homepage = " https://github.com/ssrlive/socks-hub"
@@ -13,29 +13,66 @@ edition = "2021"
13
13
crate-type = [" staticlib" , " cdylib" , " lib" ]
14
14
15
15
[features ]
16
- default = [" acl" ]
17
- acl = [" idna" , " ipnet" , " iprange" , " once_cell" , " regex" ]
16
+ default = [" sockshub" , " acl" ]
17
+ acl = [
18
+ " idna" ,
19
+ " ipnet" ,
20
+ " iprange" ,
21
+ " once_cell" ,
22
+ " regex" ,
23
+ " socks5-impl" ,
24
+ " tokio" ,
25
+ " log" ,
26
+ ]
27
+ base64 = [" dep:base64" ]
28
+ sockshub = [
29
+ " base64" ,
30
+ " socks5-impl" ,
31
+ " tokio" ,
32
+ " ctrlc2" ,
33
+ " env_logger" ,
34
+ " serde" ,
35
+ " serde_derive" ,
36
+ " serde_json" ,
37
+ " clap" ,
38
+ " chrono" ,
39
+ " http-body-util" ,
40
+ " hyper" ,
41
+ " dotenvy" ,
42
+ " as-any" ,
43
+ " bytes" ,
44
+ " pin-project-lite" ,
45
+ " log" ,
46
+ ]
18
47
19
48
[dependencies ]
20
- as-any = " 0.3"
21
- base64 = " 0.22"
22
- bytes = " 1.5"
23
- chrono = " 0.4"
24
- clap = { version = " 4.5" , features = [" derive" ] }
25
- ctrlc2 = { version = " 3.5" , features = [" termination" , " tokio" ] }
26
- dotenvy = " 0.15"
27
- env_logger = " 0.11"
28
- http-body-util = " 0.1"
29
- hyper = { version = " 1.1" , features = [" full" ] }
49
+ as-any = { version = " 0.3" , optional = true }
50
+ base64 = { version = " 0.22" , optional = true }
51
+ bytes = { version = " 1.5" , optional = true }
52
+ cfg-if = " 1.0"
53
+ chrono = { version = " 0.4" , optional = true }
54
+ clap = { version = " 4.5" , features = [" derive" ], optional = true }
55
+ ctrlc2 = { version = " 3.5" , features = [
56
+ " termination" ,
57
+ " tokio" ,
58
+ ], optional = true }
59
+ dotenvy = { version = " 0.15" , optional = true }
60
+ env_logger = { version = " 0.11" , optional = true }
61
+ http-body-util = { version = " 0.1" , optional = true }
62
+ hyper = { version = " 1.1" , features = [" full" ], optional = true }
30
63
idna = { version = " 0.5" , optional = true }
31
64
ipnet = { version = " 2.9" , optional = true }
32
65
iprange = { version = " 0.6" , optional = true }
33
- log = " 0.4"
66
+ log = { version = " 0.4" , optional = true }
34
67
once_cell = { version = " 1.19" , optional = true }
35
- pin-project-lite = { version = " 0.2" }
68
+ pin-project-lite = { version = " 0.2" , optional = true }
36
69
regex = { version = " 1.10" , optional = true }
37
- serde = " 1.0"
38
- serde_derive = " 1.0"
39
- serde_json = " 1.0"
40
- socks5-impl = " 0.5"
41
- tokio = { version = " 1" , features = [" full" ] }
70
+ serde = { version = " 1.0" , optional = true }
71
+ serde_derive = { version = " 1.0" , optional = true }
72
+ serde_json = { version = " 1.0" , optional = true }
73
+ socks5-impl = { version = " 0.5" , optional = true }
74
+ tokio = { version = " 1" , features = [" full" ], optional = true }
75
+
76
+ [[bin ]]
77
+ name = " socks-hub"
78
+ required-features = [" sockshub" , " acl" ]
0 commit comments