-
Notifications
You must be signed in to change notification settings - Fork 195
/
Cargo.toml
153 lines (125 loc) · 3.04 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[package]
name = "fuso"
version = "1.0.5-beta"
edition = "2021"
build = "build.rs"
authors = ["editso <https://github.com/editso>"]
description = "An intranet penetration proxy tool"
license = "GPL-3.0"
keywords = ["proxy", "penetrate", "socks5", "async", "small", "networking"]
categories = ["proxy", "network-programming"]
repository = "https://github.com/editso/fuso"
homepage = "https://github.com/editso/fuso"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
cc = "1.0"
[dependencies]
log = "0.4.16"
async-mutex = "1.4.0"
async-channel = "1.6.1"
pin-project = "1.0.10"
[dependencies.futures]
version = "0.3.21"
optional = true
[dependencies.tokio]
version = "1.17.0"
optional = true
features = ["full", "io-util"]
[dependencies.smol]
version = "1.2.5"
optional = true
[dependencies.serde]
version = "1.0.136"
optional = true
features = ["derive"]
[dependencies.bincode]
version = "1.3.3"
optional = true
[dependencies.axum]
version = "0.5.1"
optional = true
[dependencies.toml]
version = "0.5.9"
optional = true
[dependencies.clap]
version = "3.1.8"
features = ["derive"]
optional = true
[dependencies.bytes]
version = "1.1.0"
optional = true
[dependencies.env_logger]
version = "0.9.0"
optional = true
[dependencies.rsa]
version = "0.6.1"
optional = true
[dependencies.aes]
version = "0.8.1"
optional = true
[dependencies.cbc]
version = "0.1.2"
optional = true
[dependencies.rand]
version = "0.8.5"
optional = true
[dependencies.serde_json]
version = "1.0.83"
optional = true
[dependencies.once_cell]
version = "1.13.0"
optional = true
[dependencies.num_cpus]
version = "1.13.1"
optional = true
[profile.release]
lto = true
debug = false
rpath = false
incremental = false
overflow-checks = false
opt-level = 'z'
codegen-units = 1
panic = 'abort'
[features]
# 默认开启tokio异步 & clap参数解析器
default = ['fuso-rt-tokio', "fuso-api", "fuso-json", "fuso-kcp","fuso-clap", "bytes", "fuso-serde", "fuso-socks5", "fuso-crypt-rsa", "fuso-crypt-aes", "fus-log"]
# 只提供api,不提供web界面
fuso-api = ["axum", "fuso-rt-tokio"]
# web界面
fuso-dashboard = ["fuso-api", "toml", "serde"]
# 配置文件的方式运行
fuso-toml = ["toml"]
# 使用serde序列化进行数据传输
fuso-serde = ["serde", "bincode"]
# 使用clap进行参数解析
fuso-clap = ["clap"]
# 运行时
fuso-rt-smol = ['smol', "futures", "num_cpus", "once_cell"]
# tokio运行时
fuso-rt-tokio = ['tokio']
# 自定义运行时
fuso-rt-custom = ["futures"]
# kcp
fuso-kcp = []
# quic
fuso-quic = []
# 直连模式
fuso-proxy = []
# socks5代理
fuso-socks5 = []
# rsa加密
fuso-crypt-rsa = ["rsa", "rand"]
# aes加密
fuso-crypt-aes = ["aes", "cbc"]
# json
fuso-json = ["serde_json"]
# 客户端日志输出
fuc-log = ["env_logger"]
fus-log = ["env_logger"]
[[bin]]
name = "fuc"
path = "src/bin/client/fuso_main.rs"
[[bin]]
name = "fus"
path = "src/bin/server/fuso_main.rs"