-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Cargo.toml
89 lines (83 loc) · 2.86 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
[package]
name = "moproxy"
version = "0.5.1"
authors = ["sorz <[email protected]>"]
edition = "2021"
description = "Transparent TCP to SOCKSv5/HTTP proxy on Linux written in Rust"
readme = "README.md"
repository = "https://github.com/sorz/moproxy"
license = "MIT"
keywords = ["proxy", "socksv5"]
categories = ["command-line-utilities"]
rust-version = "1.75.0"
[dependencies]
rand = "0.8"
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
net2 = "0.2"
clap = { version = "4", features = ["derive", "wrap_help"] }
tracing = "0.1"
tracing-subscriber = "0.3"
serde = { version = "1", features = ["rc"] }
serde_json = "1"
serde_derive = "1"
serde_with = "3"
rust-ini = "0.20"
hyper = { version = "1", optional = true, features = [
"http1",
"server",
] }
hyper-util = { version = "0.1", features = ["tokio"] }
http-body-util = "0.1"
parking_lot = { version = "0.12", features = ["serde", "deadlock_detection"] }
http = "1"
prettytable-rs = { version = "0.10", default-features = false }
regex = "1"
once_cell = "1"
number_prefix = "0.4"
futures-core = "0.3"
futures-util = "0.3"
httparse = "1"
rlua = { version = "0.19", optional = true }
bytes = "1"
zip = { version = "0.6", optional = true, default-features = false, features = [
"deflate"
] }
base64 = "0.21"
nom = "7"
flexstr = { version = "0.9", features = ["serde"] }
anyhow = "1"
ip_network_table-deps-treebitmap = "0.5.0"
[target.'cfg(target_os = "linux")'.dependencies]
libc = "0.2"
nix = { version = "0.27", features = ["fs", "net", "socket"] }
sd-notify = { version = "0.4", optional = true }
tracing-journald = { version = "0.3", optional = true }
[features]
default = ["web_console", "score_script", "systemd", "rich_web"]
web_console = ["hyper"]
rich_web = ["web_console", "zip"]
score_script = ["rlua"]
systemd = ["sd-notify", "tracing-journald"]
[build-dependencies]
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls", "blocking"] }
[package.metadata.deb]
section = "net"
priority = "optional"
assets = [
["target/release/moproxy", "usr/bin/", "755"],
["README.md", "usr/share/doc/moproxy/README", "644"],
["conf/moproxy.service", "usr/lib/systemd/system/", "644"],
["conf/config.env", "etc/moproxy/", "644"],
["conf/proxy.ini", "etc/moproxy/", "644"],
["conf/simple_score.lua", "etc/moproxy/", "644"],
]
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/moproxy", dest = "/usr/bin/moproxy", mode = "755" },
{ source = "README.md", dest = "/usr/share/doc/moproxy/README", mode = "644" },
{ source = "conf/moproxy.service", dest = "/usr/lib/systemd/system/moproxy.service", mode = "644" },
{ source = "conf/config.env", dest = "/etc/moproxy/config.env", mode = "644" },
{ source = "conf/proxy.ini", dest = "/etc/moproxy/proxy.ini", mode = "644" },
{ source = "conf/simple_score.lua", dest = "/etc/moproxy/simple_score.lua", mode = "644" },
]