-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathCargo.toml
More file actions
349 lines (323 loc) · 12.3 KB
/
Cargo.toml
File metadata and controls
349 lines (323 loc) · 12.3 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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
[workspace]
members = [
"benchmarks",
"crates/*",
"xtask"
]
resolver = "2"
[workspace.package]
version = "0.1.0"
authors = ["OpenTelemetry"]
edition = "2024"
repository = "https://github.com/open-telemetry/otel-arrow"
license = "Apache-2.0"
publish = false
rust-version = "1.87.0"
[package]
name = "otap-df"
version = "0.1.0"
description = "OpenTelemetry Rust Dataflow Engine supporting natively OTLP and OTAP Data Formats"
edition.workspace = true
repository.workspace = true
license.workspace = true
keywords = ["OpenTelemetry", "OTLP", "OTAP", "Dataflow", "Engine"]
categories = ["asynchronous", "network-programming"]
[[bin]]
name = "df_engine"
path = "src/main.rs"
[dependencies]
otap-df-config.workspace = true
otap-df-contrib-nodes.workspace = true
otap-df-controller.workspace = true
otap-df-core-nodes.workspace = true
otap-df-engine.workspace = true
otap-df-otap.workspace = true
thiserror.workspace = true
serde_json.workspace = true
clap.workspace = true
mimalloc = { workspace = true, optional = true }
sysinfo.workspace = true
[target.'cfg(not(windows))'.dependencies]
tikv-jemallocator = { workspace = true, optional = true }
[workspace.dependencies]
otap-df-pdata-otlp-macros = { path = "./crates/pdata/src/otlp/macros"}
otap-df-pdata-otlp-model = { path = "./crates/pdata/src/otlp/model"}
otap-df-config = { path = "crates/config" }
otap-df-contrib-nodes = { path = "crates/contrib-nodes" }
otap-df-control-channel = { path = "crates/control-channel" }
otap-df-controller = { path = "crates/controller" }
otap-df-core-nodes = { path = "crates/core-nodes" }
otap-df-engine = { path = "crates/engine" }
otap-df-otap = { path = "crates/otap" }
otap-test-tls-certs = { package = "otap-df-test-tls-certs", path = "crates/otap-test-tls-certs" }
otap-df-pdata = { path = "crates/pdata" }
otap-df-pdata-views = { path = "crates/pdata-views" }
otap-df-telemetry = { path = "crates/telemetry" }
quiver = { package = "otap-df-quiver", path = "crates/quiver" }
data_engine_expressions = { path = "../experimental/query_engine/expressions" }
data_engine_kql_parser = { path = "../experimental/query_engine/kql-parser" }
data_engine_parser_abstractions = { path = "../experimental/query_engine/parser-abstractions"}
ahash = "0.8.11"
arc-swap = "1.7"
arrayvec = "0.7.6"
arrow = { version = "58.1", features=["prettyprint"] }
arrow-buffer = { version = "58.1" }
arrow-ipc = { version = "58.1", features=["zstd"] }
arrow-schema = { version = "58.1" }
arrow-array = { version = "58.1" }
async-stream = "0.3.6"
async-trait = "0.1.88"
async-unsync = "0.3.0"
axum = "0.8.4"
base64 = "0.22.1"
bitflags = "2.10"
bytes = "1.11.1"
bytemuck = "1.24"
blake3 = "1.5.5"
chrono = { version = "0.4", features = ["serde"] }
chrono-tz = { version = "0.10" }
ciborium = "0.2.2"
clap = { version = "4.5.42", features = ["derive"] }
core_affinity = "0.8.3"
criterion = "0.8.0"
data-encoding = "2.9.0"
datafusion = { version = "53.0.0", default-features = false }
fluke-hpack = "0.3.1"
flume = { version = "0.12.0", default-features = false, features = ["async"] }
futures = "0.3.32"
futures-core = "0.3.32"
futures-channel = "0.3.32"
futures-timer = "3.0.3"
async-channel = { version = "2.5.0" }
http = "1.4"
humantime = "2.3.0"
humantime-serde = "1.1.1"
itoa = "1"
itertools = "0.14.0"
linkme = "0.3.35"
local-sync = "0.1.1"
miette = { version="7.6.0", features = ["fancy"] }
mimalloc = { version = "0.1.48", features = ["extended", "v3", "debug"] }
libmimalloc-sys = { version = "0.1.44", features = ["extended", "v3"] }
tikv-jemallocator = { version = "0.6.1" }
tikv-jemalloc-ctl = { version = "0.6.1" }
memmap2 = "0.9"
memory-stats = "1"
nix = { version = "0.31.0", features = ["process", "signal", "fs", "mman"] }
notify = "8.0" # Uses platform-native backend: inotify (Linux), kqueue (macOS), ReadDirectoryChanges (Windows)
num_enum = "0.7"
object_store = {version = "0.13.2", default-features = false}
once_cell = "1.20.2"
# TODO: Note this dependency is duplicate with crates/pdata/src/proto
# which generates the code from a submodule. Ideally we could share
# this dependency, as it means moving the derive macros used in our
# tests upstream. This is currently used by experimental logs
# exporters, hence the "logs" feature.
opentelemetry-proto = { version = "0.31", default-features = false, features = ["gen-tonic-messages", "logs"]}
opentelemetry = "0.31.0"
opentelemetry_sdk = { version = "0.31.0", default-features = false, features = ["metrics", "internal-logs"] }
opentelemetry-stdout = { version = "0.31.0", default-features = false, features = ["metrics"] }
opentelemetry-otlp = { version = "0.31.1", default-features = false, features = ["http-proto", "reqwest-blocking-client", "metrics", "internal-logs"] }
opentelemetry-prometheus = { version = "0.31.0", default-features = false, features = ["internal-logs"] }
parking_lot = "0.12.5"
paste = "1"
parquet = { version = "58.1", default-features = false, features = ["arrow", "async", "object_store"]}
pest = "2.8"
pest_derive = "2.8"
portpicker = "0.1.1"
pretty_assertions = "1.4.1"
proc-macro2 = "1.0"
prometheus = "0.14.0"
prost = "0.14"
prost-types = "0.14"
quote = "1.0"
rand = "0.10.0"
rcgen = "0.14"
roaring = "0.11.2"
ryu = "1"
rustls = { version = "0.23.22", default-features = false, features = ["std", "tls12"] }
rustls-pki-types = { version = "1.11", features = ["std"] }
tokio-rustls = { version = "0.26", default-features = false, features = ["tls12"] }
rustls-native-certs = "0.8.2"
rustls-openssl = "0.3"
schemars = { version = "1.0.0" }
serde = { version = "1.0.228", features = ["derive", "rc"] }
serde_cbor = "0.11.2"
serde_json = { version = "1.0.149" }
serde_yaml = "0.9.34-deprecated" # Deprecated, but no good alternative yet
crc32fast = "1.4.2"
replace_with = "0.1.8"
simdutf8 = "0.1.5"
slotmap = "1.0.7"
smallvec = { version = "1.15" , features = ["union"] }
socket2 = { version = "0.6.1", features = ["all"] }
ipnet = "2.11.0"
syn = { version = "2.0", features = ["full", "extra-traits"] }
zstd = "0.13"
sysinfo = "0.38"
tempfile = "3"
thiserror = "2.0.17"
tracing = { version = ">=0.1.40", default-features = false }
tracing-subscriber = { version = "0.3", default-features = false }
tokio = { version = "1.48.0", features = ["rt", "time", "net", "io-util", "sync", "macros", "rt-multi-thread", "fs", "io-std", "process"] }
tokio-stream = "0.1.17"
tokio-util = { version = "0.7.17" }
tonic = { version = "0.14", default-features = false, features = [
"channel",
"codegen",
"deflate",
"gzip",
"router",
"server",
"transport",
"zstd",
] }
tonic-middleware = "0.4.0"
tonic-prost = "0.14"
tower = "0.5.2"
tower-service = "0.3"
hyper-util = "0.1.17"
hyper = { version = "1", features = ["http1", "server", "client"] }
http-body-util = "0.1"
trybuild = "1.0"
unsync = "0.1.2"
url = "2.5.7"
uuid = { version = "1.17.0", features = ["v4", "v7"] }
weaver_common = { git = "https://github.com/open-telemetry/weaver.git", tag = "v0.21.2"}
weaver_forge = { git = "https://github.com/open-telemetry/weaver.git", tag = "v0.21.2" }
weaver_resolved_schema = { git = "https://github.com/open-telemetry/weaver.git", tag = "v0.21.2"}
weaver_resolver = { git = "https://github.com/open-telemetry/weaver.git", tag = "v0.21.2"}
weaver_semconv = { git = "https://github.com/open-telemetry/weaver.git", tag = "v0.21.2"}
zip = "=4.2.0"
byte-unit = { version = "5.2.0", features = ["serde"] }
cpu-time = "1.0.0"
azure_core = {version = "0.33.0", default-features = false }
azure_identity = {version = "0.33.0", default-features = false }
flate2 = "1.1.5"
reqwest = { version = "0.13.1", features = ["rustls-no-provider", "json", "query", "http2", "stream"] }
time = "0.3.44"
wiremock = "0.6.5"
anyhow = "1.0.98"
crossterm = "0.29"
data_engine_recordset = { path = '../experimental/query_engine/engine-recordset' }
data_engine_recordset_otlp_bridge = { path = '../experimental/query_engine/engine-recordset-otlp-bridge' }
include_dir = "0.7.4"
mime_guess = "2.0.5"
minijinja = "1"
otap-df-admin = { path = 'crates/admin' }
otap-df-channel = { path = 'crates/channel' }
otap-df-engine-macros = { path = 'crates/engine-macros' }
otap-df-opl = { path = 'crates/opl' }
otap-df-query-engine = { path = 'crates/query-engine' }
otap-df-quiver = { path = 'crates/quiver' }
otap-df-state = { path = 'crates/state' }
otap-df-telemetry-macros = { path = 'crates/telemetry-macros' }
prost-build = "0.14"
ratatui = "0.30"
testcontainers = "0.27"
toml = "0.8.22"
tonic-prost-build = "0.14"
urlencoding = "2"
geneva-uploader = "0.4.0"
[features]
# ToDo When jemalloc is enabled, we could use jemalloc_pprof to profile where memory is allocated. See https://crates.io/crates/jemalloc_pprof
default = ["jemalloc", "crypto-ring", "dev-tools"]
jemalloc = ["dep:tikv-jemallocator", "otap-df-engine/jemalloc"]
mimalloc = ["dep:mimalloc"]
azure = ["otap-df-otap/azure"]
aws = ["otap-df-otap/aws"]
unsafe-optimizations = ["unchecked-index", "unchecked-arithmetic"]
unchecked-index = []
unchecked-arithmetic = []
# Dev/test tooling (fake data generator).
dev-tools = ["otap-df-core-nodes/dev-tools"]
# Experimental features
experimental-tls = ["otap-df-otap/experimental-tls", "otap-df-core-nodes/experimental-tls"]
# Cryptographic provider selection (mutually exclusive).
# Exactly one must be enabled when using TLS or any rustls-backed dependency (e.g. reqwest).
crypto-ring = ["otap-df-otap/crypto-ring"]
crypto-aws-lc = ["otap-df-otap/crypto-aws-lc"]
crypto-openssl = ["otap-df-otap/crypto-openssl"]
# Contrib exporters (opt-in) - now in contrib-nodes
contrib-exporters = ["otap-df-contrib-nodes/contrib-exporters"]
geneva-exporter = ["otap-df-contrib-nodes/geneva-exporter"]
azure-monitor-exporter = ["otap-df-contrib-nodes/azure-monitor-exporter"]
# Contrib processors (opt-in) - now in contrib-nodes
contrib-processors = ["otap-df-contrib-nodes/contrib-processors"]
condense-attributes-processor = ["otap-df-contrib-nodes/condense-attributes-processor"]
recordset-kql-processor = ["otap-df-contrib-nodes/recordset-kql-processor"]
resource-validator-processor = ["otap-df-contrib-nodes/resource-validator-processor"]
[workspace.lints.rust]
# General compatibility lints
rust_2018_idioms = { level = "warn", priority = -1 }
rust_2021_compatibility = { level = "warn", priority = -1 }
rust_2024_compatibility = { level = "warn", priority = -1 }
future_incompatible = { level = "warn", priority = -1 }
nonstandard_style = { level = "warn", priority = -1 }
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(tokio_unstable)"] }
# Strict safety & quality standards
missing_docs = "deny"
unsafe_code = "deny"
unstable_features = "deny"
unused_import_braces = "deny"
unused_qualifications = "deny"
unused_results = "deny"
trivial_numeric_casts = "deny"
variant_size_differences = "deny"
unused_extern_crates = "deny"
# Additional helpful warnings
unused_lifetimes = "warn"
semicolon_in_expressions_from_macros = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_macro_rules = "warn"
[workspace.lints.clippy]
# Strong defaults: deny problematic patterns
cargo = { level = "deny", priority = -1 }
correctness = { level = "deny", priority = -1 }
perf = { level = "deny", priority = -1 }
complexity = { level = "warn", priority = -1 }
style = { level = "warn", priority = -1 }
suspicious = { level = "warn", priority = -1 }
restriction = { level = "allow", priority = -1 }
# Specific Clippy lint customizations
unwrap_used = "deny"
print_stdout = "deny"
print_stderr = "deny"
must-use-candidate = "warn"
await_holding_lock = "warn"
manual_async_fn = "warn"
dbg_macro = "warn"
explicit_into_iter_loop = "warn"
# Explicitly allowed practical exceptions
multiple_crate_versions = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
wrong_self_convention = "allow"
module_name_repetitions = "allow"
[workspace.lints.rustdoc]
broken_intra_doc_links = "deny"
missing_crate_level_docs = "deny"
[profile.release]
debug = "line-tables-only" # minimum required for profiling
# A more in-depth analysis is necessary to determine the optimal parameters for the release profile.
#[profile.release]
#lto = "thin"
#strip = true
[profile.bench]
inherits = "release"
opt-level = 3
debug = false
incremental = false
lto = "fat"
codegen-units = 1
# Potentially override lto for faster builds:
# lto = "thin"
# Potentially override debug/strip for easier debugging:
# debug = true
# strip = "none"
# cargo build --profile release-debug
[profile.release-debug]
inherits = "release"
debug = true # Or 2 for full debug info
strip = "none" # Keep symbols and debug info
panic = "unwind"