forked from tremor-rs/tremor-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
388 lines (353 loc) · 9.95 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
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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
[package]
authors = ["The Tremor Team"]
build = "build.rs"
description = "Tremor Runtime"
documentation = "https://docs.tremor.rs"
edition = "2021"
homepage = "https://www.tremor.rs"
license = "Apache-2.0"
name = "tremor-runtime"
readme = "README.md"
repository = "https://github.com/tremor-rs/tremor-runtime"
version = "0.12.4"
rust-version = "1.62"
[workspace]
members = [
"tremor-api",
"tremor-cli",
"tremor-common",
"tremor-influx",
"tremor-pipeline",
"tremor-script",
"tremor-value",
]
[profile.release]
debug = true
lto = "thin"
opt-level = 3
[dependencies]
anyhow = "1"
async-broadcast = "0.4"
async-compat = "0.2"
async-compression = { version = "0.3", features = [
"xz",
"futures-io",
"stream",
] }
async-std = { version = "1.12.0", features = [
"unstable",
"attributes",
"tokio1",
] }
async-stream = "0.3"
async-trait = "0.1"
base64 = "0.13"
beef = { version = "0.5", features = ["impl_serde"] }
bimap = { version = "0.6", features = ["serde"] }
byteorder = "1"
bytes = "1.2"
chrono = "0.4"
chrono-tz = "0.6"
# Once a new version of clickhouse-rs is released, we can stop using a git
# repository as a dependency. The declaration can then be replaced with the
# following:
#
# clickhouse-rs = { version = "...", default-features = false, features = [
# "async_std",
# ] }
#
# Releases can be tracked at [1].
#
# [1]: https://crates.io/crates/clickhouse-rs/versions
clickhouse-rs = { git = "https://github.com/suharev7/clickhouse-rs", rev = "553f3aa", default-features = false, features = [
"async_std",
] }
csv = "1.1"
dashmap = "5.3"
either = { version = "1.7", features = ["serde"] }
error-chain = "0.12"
file-mode = "0.1"
futures = "0.3.23"
event-listener = "2.5"
glob = "0.3"
halfbrown = "0.1"
hashbrown = { version = "0.12", features = ["serde"] }
hex = "0.4"
hostname = "0.3"
http-types = "2.12"
indexmap = { version = "1", features = ["serde-1"] }
lazy_static = "1"
libflate = "1.2"
log = { version = "0.4", features = ["kv_unstable"] }
lz4 = "1.23.3"
memchr = "2.5"
pin-project-lite = "0.2"
rand = "0.8.5"
regex = "1.6"
rmp-serde = "1.1"
serde = "1"
serde_derive = "1"
serde_yaml = "0.9"
simd-json = { version = "0.6", features = ["known-key"] }
simd-json-derive = "0.4"
snap = "1"
syslog_loose = "0.17"
tremor-common = { path = "tremor-common" }
tremor-influx = { path = "tremor-influx" }
tremor-pipeline = { path = "tremor-pipeline" }
tremor-script = { path = "tremor-script" }
tremor-value = { path = "tremor-value" }
url = "2.2"
value-trait = "0.4"
zstd = "0.11"
mapr = "0.8"
# blaster / blackhole
hdrhistogram = "7"
xz2 = "0.1"
# postgres
#postgres = { version = "0.19", features = [
# "with-serde_json-1",
# "with-chrono-0_4",
#] }
#postgres-protocol = "0.6"
#tokio-postgres = "0.7"
# amqp
#lapin = { version = "2.1.0", default-features = false, features = [
# "rustls",
# "rustls-native-certs",
#] }
# http_client
surf = { version = "=2.3.2", default-features = false, features = [
"h1-client-rustls", # this will stop us from doing http2 :(
"encoding", # this was a default feature, so we keep it
"middleware-logger", # default feature, so we keep it
] }
# We use our fork until: https://github.com/http-rs/http-client/pull/100 is merged
http-client = { git = "https://github.com/tremor-rs/http-client", rev = "059b23e", default-features = false, features = [
"h1_client",
"rustls",
] }
#http-client = { version = "6.5", default-features = false, features = [
# "h1_client",
# "rustls",
#] }
# elasticsearch
elasticsearch = { version = "=7.14.0-alpha.1", default-features = false, features = [
"rustls-tls",
] }
# ws
async-tungstenite = { version = "0.17.2", features = [
"async-std-runtime",
"async-tls",
] }
tungstenite = { version = "0.17.3", features = ["rustls"] }
# for tcp & ws
async-tls = "0.11"
rustls = "0.19"
rustls-native-certs = "0.6"
# dns
async-std-resolver = "0.21"
# kafka. cmake is the encouraged way to build this and also the one that works on windows/with musl.
# we stick with git until we have a release with https://github.com/fede1024/rust-rdkafka/pull/417
#rdkafka = { version = "0.28", features = [
rdkafka = { git = "https://github.com/fede1024/rust-rdkafka", rev = "7a2355f03c9aee8d4544e89bc4b0b0b6b96826e0", features = [
"cmake-build",
"libz-static",
], default-features = false }
# rdkafka-sys = { version = "4.2.0", features = [
rdkafka-sys = { git = "https://github.com/fede1024/rust-rdkafka", rev = "7a2355f03c9aee8d4544e89bc4b0b0b6b96826e0", features = [
"cmake-build",
"libz-static",
], default-features = false } # tracking the version rdkafka depends on
smol = "1.2.5"
# crononome
cron = "0.11.0"
# logstash grok patterns
grok = "2"
# rest onramp
tide = { version = "0.16", default-features = false, features = [
"h1-server",
] } # no logger, no session, no cookies
tide-rustls = "0.3"
# sse-onramp
#surf-sse = { git = "https://github.com/dak-x/surf-sse", tag = "2.0", default-features = false }
# nats
#async-nats = "0.10.1"
# discord
serenity = { version = "0.11", default-features = false, features = [
"client",
"gateway",
"rustls_backend",
"model",
"cache",
] }
# kv
sled = "0.34"
# opentelemetry
port_scanner = "0.1.5"
tonic = { version = "0.6.1", default-features = false, features = [
"transport",
"tls",
] }
prost = "0.11.0"
prost-types = "0.9.0"
tremor-otelapis = { version = "0.2.4" }
# aws-s3
aws-sdk-s3 = "0.17"
aws-types = "0.47"
aws-config = "0.47"
aws-smithy-http = "0.47"
# gcp
googapis = { version = "0.6", default-features = false, features = [
"google-pubsub-v1",
"google-cloud-bigquery-storage-v1",
"google-logging-v2",
"google-storage-v2",
] }
gouth = { version = "0.2" }
http = "0.2.8"
reqwest = { version = "0.11.11", default-features = false, features = [
"rustls-tls",
"rustls-tls-native-roots",
] }
# http
uuid = { version = "1.1", features = ["v4"] }
# wal
qwal = { git = "https://github.com/tremor-rs/qwal" }
[dev-dependencies]
serial_test = { version = "=0.8", features = ["logging"] }
# path = "../serial_test/serial_test"
env_logger = "0.9.0"
matches = "0.1"
pretty_assertions = "1.2.0"
proptest = "1.0"
regex = "1"
# We downgraded to 0.6 because:
# in the face of high concurrency serial_test 0.7.0 panics after 60 seconds
signal-hook = "0.3"
signal-hook-async-std = "0.2"
tempfile = { version = "3.2" }
test-case = "2.2"
testcontainers = { version = "0.14", features = ["watchdog"] }
num_cpus = "*"
[features]
default = ["integration-local"]
# support for 128bit numbers in tremor-value
128bit = ["tremor-value/128bit"]
bert = ["tremor-pipeline/bert"]
integration = ["integration-docker", "integration-local"]
integration-docker = [
"es-integration",
"s3-integration",
"kafka-integration",
"gcp-integration",
"clickhouse-integration",
]
integration-local = [
"ws-integration",
"http-integration",
"file-integration",
"crononome-integration",
"metronome-integration",
"socket-integration",
"net-integration",
"wal-integration",
]
gcp-integration = []
es-integration = []
s3-integration = []
kafka-integration = []
ws-integration = []
http-integration = []
file-integration = []
crononome-integration = []
metronome-integration = []
socket-integration = []
net-integration = []
wal-integration = []
clickhouse-integration = []
tarpaulin-exclude = []
# those are falky tests
flaky-test = []
# for use during debian packaging, via cargo-deb
# https://github.com/mmstick/cargo-deb#packagemetadatadeb-options
[package.metadata.deb]
name = "tremor"
section = "net"
# keep this in sync with the rpm dependencies (in rpm spec file)
assets = [
[
"target/release/tremor",
"/usr/bin/",
"755",
],
[
"README.md",
"/usr/share/doc/tremor/",
"644",
],
[
"LICENSE",
"/usr/share/doc/tremor/",
"644",
],
[
"packaging/distribution/etc/tremor/*",
"/etc/tremor/",
"644",
],
[
"packaging/distribution/etc/tremor/config/*",
"/etc/tremor/config/",
"644",
],
[
"packaging/distribution/usr/share/tremor/tremor.sh",
"/usr/share/tremor/",
"755",
],
[
"tremor-script/lib/**/*",
"/usr/share/tremor/lib",
"644",
],
[
"packaging/distribution/etc/systemd/system/*",
"/lib/systemd/system/",
"644",
],
] # copying systemd service to standard location for debian packages
conf-files = [
"/etc/tremor/logger.yaml",
] # these files won't be overwritten when the package is upgraded
depends = "libc6 (>= 2.17), libstdc++6, libatomic1"
maintainer-scripts = "packaging/distribution/debian/maintainer-scripts/"
# TODO generate this automatically as part of deb packaging (from README intro)
# and place in "extended-description-file"
extended-description = """\
Tremor is an early stage event processing system for unstructured data with rich support for structural pattern matching, filtering and transformation.
"""
# for use during rpm packaging, via cargo-rpm
# https://github.com/iqlusioninc/cargo-rpm
[package.metadata.rpm]
package = "tremor"
[package.metadata.rpm.cargo]
# useful when using cargo rpm itself to build the project (i.e. without the
# --no-cargo-build flag from `cargo rpm build`)
buildflags = ["--release"]
profile = "release"
[package.metadata.rpm.targets]
tremor = { path = "/usr/bin/tremor" }
# The LHS paths here are relative to the rpm config dir (.rpm at project root).
# If you add new files here, please make sure to add them to %files section in
# the rpm spec file (inside .rpm) -- otherwise the rpm packaging will fail.
[package.metadata.rpm.files]
"../LICENSE" = { path = "/usr/share/licenses/tremor/LICENSE" }
"../README.md" = { path = "/usr/share/doc/tremor/README.md" }
"../packaging/distribution/etc/tremor/" = { path = "/etc/tremor/" }
# TODO enable this after some example cleanup
#"../demo/examples/" = { path = "/etc/tremor/config/examples/" }
"../packaging/distribution/usr/share/tremor/tremor.sh" = { path = "/usr/share/tremor/tremor.sh", mode = "755" }
"../tremor-script/lib/" = { path = "/usr/share/tremor/lib/" }
# copying systemd service to standard location for rpm packages
"../packaging/distribution/etc/systemd/system/tremor.service" = { path = "/usr/lib/systemd/system/tremor.service" }