-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
118 lines (111 loc) · 3.1 KB
/
Copy pathCargo.toml
File metadata and controls
118 lines (111 loc) · 3.1 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
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
[package]
name = "zero"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
[features]
default = ["full", "status-api"]
full = [
"socks5",
"http",
"mixed",
"vless",
"hysteria2",
"shadowsocks",
"trojan",
"vmess",
"mieru",
"dns",
]
dns = ["zero-proxy/dns"]
socks5 = ["zero-proxy/socks5"]
http = ["zero-proxy/http"]
mixed = ["zero-proxy/mixed"]
vless = ["zero-proxy/vless"]
hysteria2 = ["zero-proxy/hysteria2"]
shadowsocks = ["zero-proxy/shadowsocks"]
trojan = ["zero-proxy/trojan"]
vmess = ["zero-proxy/vmess"]
mieru = ["zero-proxy/mieru"]
status-api = []
event-dispatcher = ["dep:zero-connector", "zero-connector/event-dispatcher"]
sink-jsonl = ["event-dispatcher", "zero-connector/sink-jsonl"]
connector = ["event-dispatcher", "zero-connector/webhook"]
grpc-api = ["dep:zero-grpc"]
[workspace]
members = [
"crates/traits",
"crates/core",
"crates/error",
"crates/api",
"crates/config",
"crates/connector",
"crates/logging",
"crates/proxy",
"crates/router",
"crates/rule",
"crates/platform/tokio",
"crates/ztls",
"crates/transport",
"protocols/socks5",
"protocols/http",
"protocols/vless",
"protocols/hysteria2",
"protocols/shadowsocks",
"protocols/trojan",
"protocols/vmess",
"protocols/mieru",
"crates/dns",
"crates/engine",
"crates/ffi",
"crates/grpc",
"crates/tun",
"crates/stack",
]
resolver = "2"
[workspace.package]
version = "0.0.16-dev.3"
edition = "2021"
authors = ["zerodenet <https://zerodenet.org>"]
license = "MPL-2.0"
repository = "https://github.com/zerodenet/zero"
homepage = "https://zerodenet.org"
[workspace.dependencies]
fs2 = "0.4"
ipnet = { version = "2.11", features = ["serde"] }
idna = "1"
maxminddb = "0.24"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha2 = "0.10"
tempfile = "3"
thiserror = "1"
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "rt-multi-thread", "signal", "sync", "time"] }
tracing = "0.1"
tracing-appender = "0.2"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "json"] }
rustls = { version = "0.23", default-features = false, features = ["aws_lc_rs", "ring", "std", "tls12", "logging"] }
[build-dependencies]
time = { version = "0.3", features = ["formatting", "macros"] }
[dependencies]
async-trait = "0.1"
serde.workspace = true
serde_json.workspace = true
sha2.workspace = true
tokio.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
rustls.workspace = true
ureq = { version = "2", default-features = false, features = ["tls"] }
zero-api = { path = "crates/api" }
zero-config = { path = "crates/config" }
zero-engine = { path = "crates/engine", default-features = false }
zero-logging = { path = "crates/logging" }
zero-proxy = { path = "crates/proxy", default-features = false }
zero-connector = { path = "crates/connector", optional = true, default-features = false }
zero-grpc = { path = "crates/grpc", optional = true }
[dev-dependencies]
tempfile.workspace = true