-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathCargo.toml
More file actions
459 lines (429 loc) · 16 KB
/
Copy pathCargo.toml
File metadata and controls
459 lines (429 loc) · 16 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
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
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
[package]
name = "obelisk"
description = "Deterministic workflow engine"
readme = "README.md"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true
[dependencies]
concepts.workspace = true
db-postgres.workspace = true
db-sqlite.workspace = true
executor.workspace = true
grpc.workspace = true
utils.workspace = true
val-json.workspace = true
wasm-workers.workspace = true
activity-js-runtime-builder = { workspace = true, optional = true } # Only for local development
webhook-js-runtime-builder = { workspace = true, optional = true } # Only for local development
workflow-js-runtime-builder = { workspace = true, optional = true } # Only for local development
anyhow.workspace = true
assert_matches.workspace = true
async-trait.workspace = true
axum-accept.workspace = true
axum-extra.workspace = true
axum.workspace = true
base64.workspace = true
bytes.workspace = true
cfg-if.workspace = true
chrono.workspace = true
clap.workspace = true
config.workspace = true
const_format.workspace = true
croner.workspace = true
derive_more.workspace = true
directories.workspace = true
docker_credential.workspace = true
futures-util.workspace = true
hashbrown.workspace = true
http.workspace = true
indexmap.workspace = true
itertools.workspace = true
jsonwebtoken.workspace = true # Enable rust_crypto features for oci-client's jsonwebtoken dep
oci-client.workspace = true
oci-wasm.workspace = true
prost-wkt-types.workspace = true
prost.workspace = true
rand.workspace = true
reqwest.workspace = true
rustls.workspace = true # Enable ring crypto provider for rustls (instead of aws-lc-rs)
schemars.workspace = true
secrecy.workspace = true
semver.workspace = true
serde_json.workspace = true
serde_with.workspace = true
serde.workspace = true
sha2.workspace = true
strum.workspace = true
tempfile.workspace = true
thiserror.workspace = true
tokio-stream.workspace = true
tokio.workspace = true
toml_edit.workspace = true
toml.workspace = true
tonic = { workspace = true, default-features = true, features = [
"zstd",
"gzip",
"tls-native-roots",
"tls-ring",
] }
tonic-prost.workspace = true
tonic-reflection.workspace = true
tonic-web.workspace = true
tower-http.workspace = true
tower.workspace = true
tracing-appender.workspace = true
tracing-error.workspace = true
tracing-subscriber.workspace = true
tracing.workspace = true
utoipa-axum.workspace = true
utoipa.workspace = true
wasmtime.workspace = true
wit-component.workspace = true
wit-parser.workspace = true
# Optional deps:
## otlp
opentelemetry = { workspace = true, optional = true }
opentelemetry_sdk = { workspace = true, optional = true }
opentelemetry-otlp = { workspace = true, optional = true }
opentelemetry-semantic-conventions = { workspace = true, optional = true }
tracing-opentelemetry.workspace = true
## tokio-console
console-subscriber = { workspace = true, optional = true }
[dev-dependencies]
test-utils.workspace = true
concepts = { workspace = true, features = ["test"] }
db-mem = { workspace = true, features = ["test"] }
db-postgres = { workspace = true, features = ["test"] }
db-sqlite = { workspace = true, features = ["test"] }
wasm-workers = { workspace = true, features = ["test"] }
hmac.workspace = true
insta.workspace = true
paste.workspace = true
rstest.workspace = true
[[bin]]
name = "obelisk"
path = "src/main.rs"
[features]
tokio-console = ["dep:console-subscriber"]
otlp = [
"dep:opentelemetry",
"dep:opentelemetry_sdk",
"dep:opentelemetry-otlp",
"dep:opentelemetry-semantic-conventions",
]
"activity-js-local" = ["dep:activity-js-runtime-builder"]
"webhook-js-local" = ["dep:webhook-js-runtime-builder"]
"workflow-js-local" = ["dep:workflow-js-runtime-builder"]
default = ["otlp"]
[lints]
workspace = true
[workspace]
resolver = "2"
exclude = ["boa"]
members = [
"crates/activity-js-runtime",
"crates/activity-js-runtime/builder",
"crates/boa-common",
"crates/webhook-js-runtime",
"crates/webhook-js-runtime/builder",
"crates/bench",
"crates/concepts",
"crates/db-common",
"crates/db-mem",
"crates/db-postgres",
"crates/db-sqlite",
"crates/executor",
"crates/grpc",
"crates/testing/component-builder",
"crates/testing/db-macro",
"crates/testing/db-tests",
"crates/testing/test-programs/fibo/activity",
"crates/testing/test-programs/fibo/activity/builder",
"crates/testing/test-programs/fibo/webhook",
"crates/testing/test-programs/fibo/webhook/builder",
"crates/testing/test-programs/fibo/workflow-outer",
"crates/testing/test-programs/fibo/workflow-outer/builder",
"crates/testing/test-programs/fibo/workflow",
"crates/testing/test-programs/fibo/workflow/builder",
"crates/testing/test-programs/http/activity",
"crates/testing/test-programs/http/activity/builder",
"crates/testing/test-programs/http/webhook",
"crates/testing/test-programs/http/webhook/builder",
"crates/testing/test-programs/http/workflow",
"crates/testing/test-programs/http/workflow/builder",
"crates/testing/test-programs/serde/activity",
"crates/testing/test-programs/serde/activity/builder",
"crates/testing/test-programs/serde/workflow",
"crates/testing/test-programs/serde/workflow/builder",
"crates/testing/test-programs/sleep/activity",
"crates/testing/test-programs/sleep/activity/builder",
"crates/testing/test-programs/sleep/webhook",
"crates/testing/test-programs/sleep/webhook/builder",
"crates/testing/test-programs/sleep/workflow",
"crates/testing/test-programs/sleep/workflow/builder",
"crates/testing/test-programs/stub/activity",
"crates/testing/test-programs/stub/activity/builder",
"crates/testing/test-programs/stub/workflow",
"crates/testing/test-programs/stub/workflow/builder",
"crates/testing/test-utils",
"crates/utils",
"crates/val-json",
"crates/wasm-workers",
"crates/workflow-js-runtime",
"crates/workflow-js-runtime/builder",
]
[workspace.package]
version = "0.37.7"
description = "Deterministic workflow engine"
license = "AGPL-3.0-only"
repository = "https://github.com/obeli-sk/obelisk"
authors = ["Project Developers"]
edition = "2024"
rust-version = "1.91.0"
[workspace.dependencies]
activity-js-runtime-builder = { path = "crates/activity-js-runtime/builder" }
boa-common = { path = "crates/boa-common" }
webhook-js-runtime-builder = { path = "crates/webhook-js-runtime/builder" }
concepts = { package = "obeli-sk-concepts", path = "crates/concepts", version = "0.37.7" }
db-common = { package = "obeli-sk-db-common", path = "crates/db-common", version = "0.37.7" }
db-mem = { package = "obeli-sk-db-mem", path = "crates/db-mem", version = "0.37.7" }
db-postgres = { package = "obeli-sk-db-postgres", path = "crates/db-postgres", version = "0.37.7" }
db-sqlite = { package = "obeli-sk-db-sqlite", path = "crates/db-sqlite", version = "0.37.7" }
db-tests = { package = "obeli-db-tests", path = "crates/testing/db-tests" }
executor = { package = "obeli-sk-executor", path = "crates/executor", version = "0.37.7" }
grpc = { package = "obeli-sk-grpc", path = "crates/grpc", version = "0.37.7" }
obelisk-component-builder = { path = "crates/testing/component-builder", features = [
"genrs",
] }
test-db-macro = { path = "crates/testing/db-macro" }
test-programs-fibo-activity-builder = { path = "crates/testing/test-programs/fibo/activity/builder" }
test-programs-fibo-webhook-builder = { path = "crates/testing/test-programs/fibo/webhook/builder" }
test-programs-fibo-workflow-builder = { path = "crates/testing/test-programs/fibo/workflow/builder" }
test-programs-http-get-activity-builder = { path = "crates/testing/test-programs/http/activity/builder" }
test-programs-http-get-webhook-builder = { path = "crates/testing/test-programs/http/webhook/builder" }
test-programs-http-get-workflow-builder = { path = "crates/testing/test-programs/http/workflow/builder" }
test-programs-serde-activity-builder = { path = "crates/testing/test-programs/serde/activity/builder" }
test-programs-serde-workflow-builder = { path = "crates/testing/test-programs/serde/workflow/builder" }
test-programs-sleep-activity-builder = { path = "crates/testing/test-programs/sleep/activity/builder" }
test-programs-sleep-workflow-builder = { path = "crates/testing/test-programs/sleep/workflow/builder" }
test-programs-stub-activity-builder = { path = "crates/testing/test-programs/stub/activity/builder" }
test-programs-stub-workflow-builder = { path = "crates/testing/test-programs/stub/workflow/builder" }
test-utils = { path = "crates/testing/test-utils" }
utils = { package = "obeli-sk-utils", path = "crates/utils", version = "0.37.7" }
val-json = { package = "obeli-sk-val-json", path = "crates/val-json", version = "0.37.7" }
wasm-workers = { package = "obeli-sk-wasm-workers", path = "crates/wasm-workers", version = "0.37.7" }
workflow-js-runtime-builder = { path = "crates/workflow-js-runtime/builder" }
anyhow = { version = "1.0", features = ["backtrace"] }
arbitrary = { version = "1.4.2", features = ["derive"] }
assert_matches = "1.5.0"
async-trait = "0.1"
axum = { version = "0.8.9", features = ["http2"] }
axum-accept = "0.0.5"
axum-extra = { version = "0.12.6", features = ["query"] }
base64 = "0.22.1"
bytes = "1.11.1"
cargo_metadata = "0.23"
cfg-if = "1.0.4"
chrono = { version = "0.4.44", features = ["arbitrary", "serde"] }
clap = { version = "4.6.1", features = ["derive"] }
config = { version = "0.15.23", default-features = false, features = [
"toml",
"preserve_order",
"async",
] }
console-subscriber = "0.5.0"
const_format = "0.2.36"
croner = "2"
criterion = "0.8"
crossterm = "0.29.0"
deadpool-postgres = "0.14.1"
derive_more = { version = "2.1.1", features = [
"debug",
"deref",
"display",
"eq",
"from_str",
"into",
"try_from",
] }
derive-where = "1.6.1"
directories = "6.0"
divan = { version = "4.6", package = "codspeed-divan-compat" }
docker_credential = "1.3.3"
futures = { version = "0.3.32", default-features = false }
futures-concurrency = "7.7.1"
futures-lite = "2.6.1"
futures-util = "0.3.32"
getrandom = "0.4"
hashbrown = { version = "0.16.1", features = ["serde"] }
hdrhistogram = { version = "7.5.4", default-features = false }
http = "1.4.0"
http-body-util = "0.1"
hyper = "1.9.0"
hyper-util = { version = "0.1", features = ["tokio"] }
id-arena = "2.3.0"
indexmap = { version = "2.14", features = ["serde"] }
insta = { version = "1.47.2", features = ["json"] }
itertools = "0.14"
jsonwebtoken = { version = "10", default-features = false }
lazy_static = "1.5"
libc = "0.2.186"
oci-client = { version = "0.17.0", default-features = false }
oci-wasm = { version = "0.4.0", default-features = false } # Dependent on matching oci-client
paste = "1.0"
prost = "0.14.3"
prost-wkt-types = "0.7"
quote = "1"
rand = "0.9"
refinery = { git = "https://github.com/rust-db/refinery.git", rev = "14354f54c51a07c9615a78d6432861e0ef7a2db3", default-features = false, features = ["rusqlite", "tokio-postgres-rustls"] }
reqwest = { version = "0.13", default-features = false, features = [
"json",
"rustls-no-provider",
] }
rustls = { version = "0.23", default-features = false, features = [
"logging",
"ring",
"std",
"tls12",
] }
route-recognizer = "0.3.1"
rstest = "0.26"
rusqlite = { version = "0.39.0", features = [
"bundled",
"chrono",
"serde_json",
] }
schemars = { version = "1.2.1", features = ["indexmap2", "chrono04"] }
secrecy = "0.10.3"
semver = "1.0.28"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = { version = "1.0.149", features = ["preserve_order"] }
serde_with = "3.20.0"
hmac = "0.12.1"
sha2 = "0.10.9"
strum = { version = "0.28.0", features = ["derive"] }
syn = { version = "2", features = ["full"] }
tempfile = "3.27"
thiserror = "2.0"
tokio-postgres = { version = "0.7.17", features = ["with-chrono-0_4", "with-serde_json-1"] }
tokio = { version = "1", features = [
"fs",
"io-util",
"macros",
"process",
"rt-multi-thread",
"rt",
"signal",
"sync",
"time",
"tracing",
] }
tokio-stream = "0.1.18"
toml = { version = "1.1.2", features = ["preserve_order"] }
toml_edit = "0.25.11"
tonic = { version = "0.14.6", default-features = false }
tonic-prost = "0.14.6"
tonic-prost-build = "0.14.6"
tonic-reflection = "0.14.6"
tonic-web = "0.14.6"
tower = "0.5.3"
tower-http = { version = "0.6.10", features = ["trace", "cors"] }
tracing = { version = "0.1", features = ["log"] }
tracing-appender = "0.2.5"
tracing-error = "0.2.1"
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "json"] }
ulid = { version = "1.2", features = ["serde"] }
url = "2.5.8"
utoipa = { version = "5.5.0", features = ["chrono"] }
utoipa-axum = "0.2.0"
wiremock = "0.6"
# wasmtime
wasmtime = { version = "44.0.0", features = ["memory-protection-keys"] }
wasmtime-wasi = "44.0.0"
wasmtime-wasi-io = "44.0.0"
wasmtime-wasi-http = "44.0.0"
wasmtime-environ = "44.0.0"
# wasm-tools
wast = "246.0.2"
wit-parser = "0.246.2"
wasmparser = "0.246.2"
wit-component = "0.246.2"
# boa
boa_engine = { package="obeli-sk-boa-engine", version="1.0.0-obeli-sk.7", default-features = false }
boa_gc = { package="obeli-sk-boa-gc", version="1.0.0-obeli-sk.7" }
boa_runtime = { package="obeli-sk-boa-runtime" , version="1.0.0-obeli-sk.7", default-features = false, features = ["fetch"] }
# boa_engine = { path = "../wasm/boa/core/engine", default-features = false }
# boa_gc = { path = "../wasm/boa/core/gc" }
# boa_runtime = { path = "../wasm/boa/core/runtime", default-features = false, features = ["fetch"] }
# boa_engine = { git = "https://github.com/obeli-sk/boa", package = "boa_engine", rev = "9b145317", default-features = false }
# boa_gc = { git = "https://github.com/obeli-sk/boa", package = "boa_gc", rev = "9b145317" }
# boa_runtime = { git = "https://github.com/obeli-sk/boa", package = "boa_runtime", rev = "9b145317", default-features = false, features = ["fetch"] }
# testing components
wasip2 = "1.0.3"
wit-bindgen = "0.57.1"
wit-bindgen-rust = "0.57.1"
wstd = "0.6.5"
# otlp
opentelemetry = "0.31.0"
opentelemetry-http = "0.31.0"
opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.31.1", default-features = false, features = [
"tls",
"tls-roots",
"grpc-tonic",
"trace",
"logs",
"metrics",
] }
opentelemetry-semantic-conventions = "0.32.0"
tracing-opentelemetry = "0.32"
[workspace.lints]
# lower the priority to allow overriding later
clippy.all = { level = "deny", priority = -1 }
# lower the priority to allow overriding later
clippy.dbg_macro = "deny"
# lower the priority to allow overriding later
clippy.pedantic = { level = "deny", priority = -1 }
# lower the priority to allow overriding later
clippy.explicit_deref_methods = "allow" # Lots of false positives.
# lower the priority to allow overriding later
clippy.missing_errors_doc = "allow" # Allow missing docs for now
# lower the priority to allow overriding later
clippy.missing_panics_doc = "allow" # Allow missing docs for now
# lower the priority to allow overriding later
clippy.trivially_copy_pass_by_ref = "allow" # Lots of false positives.
# lower the priority to allow overriding later
clippy.module_name_repetitions = "allow"
# Vec::from_iter is more readable than collect::<Vec<_>>
clippy.from_iter_instead_of_collect = "allow"
# Happy path should be first no matter the condition.
clippy.if_not_else = "allow"
# Keep paths surrounded with quotes
clippy.unnecessary_debug_formatting = "allow"
clippy.too_many_lines = "allow"
clippy.map_unwrap_or = "allow" # More readable than .map_or_else with reverse parameters.
clippy.items_after_statements = "allow" # keep nested types near to their usage
[workspace.lints.rust]
unexpected_cfgs = "deny"
unknown_lints = "deny"
[profile.release]
overflow-checks = true
opt-level = "s"
codegen-units = 1
lto = "fat"
strip = "debuginfo"
[profile.release_testprograms]
inherits = "release"
debug = "line-tables-only"
strip = "none"
[profile.release_wasm_runtime]
inherits = "release"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/obelisk-{ target }.tar.gz"
pkg-fmt = "tgz"
[profile.dev]
debug = "line-tables-only"