-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCargo.toml
More file actions
231 lines (185 loc) · 5.93 KB
/
Copy pathCargo.toml
File metadata and controls
231 lines (185 loc) · 5.93 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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
# ===========================================================================
# Warp Parse - Flow Data Processing System
# ===========================================================================
#
# Binary applications for data parsing and processing:
# - wparse: 主解析引擎
# - wpgen: 规则生成工具
# - wproj: 项目管理工具
# - wprescue: 数据恢复工具
#
# Feature flags:
# - default/community: 社区版(含 Kafka、MySQL、ClickHouse 等)
# - runtime-core: 最小运行时
#
# ===========================================================================
[package]
name = "warp-parse"
version = "0.22.5" # @gxl:set(version)
edition = "2021"
rust-version = "1.75"
authors = ["Warp Parse Team"]
license = "Apache-2.0"
description = "High-performance flow data parsing and processing system"
repository = "https://github.com/wp-labs/warp-parse"
keywords = ["parsing", "data-processing", "security", "log-analysis"]
categories = ["command-line-utilities", "parsing"]
# ===========================================================================
# Binary Applications
# ===========================================================================
[[bin]]
name = "wparse"
path = "src/wparse/main.rs"
[[bin]]
name = "wpgen"
path = "src/wpgen/main.rs"
[[bin]]
name = "wproj"
path = "src/wproj/main.rs"
[[bin]]
name = "wprescue"
path = "src/wprescue/main.rs"
# ===========================================================================
# Build Profiles
# ===========================================================================
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
panic = "abort"
[profile.dev]
panic = "abort"
# ===========================================================================
# Package Metadata
# ===========================================================================
[package.metadata.cargo-udeps.ignore]
normal = ["ctor"]
# ===========================================================================
# Build Dependencies
# ===========================================================================
[build-dependencies]
shadow-rs = "1.6"
# ===========================================================================
# Dev Dependencies
# ===========================================================================
[dev-dependencies]
serial_test = "3.2"
tempfile = "3.23"
# ===========================================================================
# Features
# ===========================================================================
[features]
# --- Default ---
default = ["community"]
# --- Runtime ---
core = []
# --- Community Edition (default) ---
community = [
"core",
"kafka",
"doris",
"mysql",
"postgres",
"clickhouse",
"http",
"elasticsearch",
"prometheus",
"victorialogs",
"victoriametrics"
]
# --- Connectors (via wp_connectors) ---
kafka = ["wp-connectors/kafka"]
mysql = ["wp-connectors/mysql"]
postgres = ["wp-connectors/postgres"]
doris = ["wp-connectors/doris"]
clickhouse = ["wp-connectors/clickhouse"]
http = ["wp-connectors/http"]
elasticsearch = ["wp-connectors/elasticsearch"]
prometheus = ["wp-connectors/prometheus"]
victorialogs = ["wp-connectors/victorialogs"]
victoriametrics = ["wp-connectors/victoriametrics"]
# --- Enterprise ---
# --- Convenience ---
all = ["community"]
# --- Testing (cfg gates) ---
sys_test = []
res_depend_test = []
# --- Development ---
examples = []
perf-ci = []
dev-tools = []
wp-enterprise = []
# --- Plugins (placeholder for compatibility) ---
example-plugin = []
extras = []
plugin-suite = []
# ===========================================================================
# Dependencies
# ===========================================================================
#
[dependencies]
# --- System and Platform ---
sysinfo = "0.38"
libc = "0.2"
tikv-jemallocator = "0.6"
# --- Async Runtime ---
tokio = { version = "1.48", features = ["full"] }
# --- Serialization ---
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "1.0"
semver = "1.0"
git2 = "0.20"
reqwest = "0.13.2"
http-body-util = "0.1"
hyper = { version = "1.8", features = ["server", "http1"] }
hyper-util = { version = "0.1.20", features = ["server", "server-auto", "service", "tokio", "http1"] }
# --- Logging and Errors ---
anyhow = "1.0"
orion-error = "0.6.3"
orion-sec = "0.4"
orion-variate = "0.12"
orion_conf = { version = "0.5", features = ["yaml", "toml"] }
# --- Time ---
chrono = "0.4"
time = "0.3"
# --- CLI ---
clap = { version = "4.5", features = ["derive"] }
# --- Parsing ---
#regex = "~1.11"
# --- Derive Macros ---
# --- Utilities ---
#bytes = "~1.7"
uuid = { version = "1.19", features = ["v4"] }
once_cell = "1.21"
shadow-rs = { version = "1.6.0", default-features = false }
rand = "0.9"
rustls = "0.23"
tokio-rustls = "0.26"
# --- Data Structures ---
# --- File System ---
walkdir = "2.5"
glob = "0.3"
# --- Internal: Open API ---
wp-connector-api = "0.8"
# --- Internal: Infrastructure ---
wp-log = "0.2"
wp-error = "0.8"
# --- Internal: Engine ---
# feats/oml_static.1
wp-knowledge = "0.11"
# @gxl:block(remote_motor)
wp-engine = { git = "https://github.com/wp-labs/wp-motor", tag = "v1.20.7" }
wp-config = { package = "wp-config", git = "https://github.com/wp-labs/wp-motor", tag = "v1.20.7" }
wp-cli-core = { package = "wp-cli-core", git = "https://github.com/wp-labs/wp-motor", tag = "v1.20.7" }
wp-proj = { package = "wp-proj", git = "https://github.com/wp-labs/wp-motor", tag = "v1.20.7" }
# @gxl:end(remote_motor)
wp-self-update = "0.1"
wp-connectors = { package = "wp-connectors", git = "https://github.com/wp-labs/wp-connectors", tag = "v0.12.3" }
# @gxl:block(local_motor)
#wp-engine = { path = "../wp-motor" }
#wp-config = { path = "../wp-motor/crates/wp-config" }
#wp-cli-core = { path = "../wp-motor/crates/wp-cli-core" }
#wp-proj = { path = "../wp-motor/crates/wp-proj" }
# @gxl:end(local_motor)
# wp-enterprise = { path = "../wp-enterprise" }