-
Notifications
You must be signed in to change notification settings - Fork 431
Expand file tree
/
Copy pathCargo.toml
More file actions
354 lines (327 loc) · 14 KB
/
Copy pathCargo.toml
File metadata and controls
354 lines (327 loc) · 14 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
[workspace]
members = [
"apis/c/node",
"apis/c/operator",
"apis/c++/node",
"apis/c++/operator",
"apis/python/cli",
"apis/python/node",
"apis/python/operator",
"apis/rust/node",
"apis/rust/operator",
"apis/rust/operator/macros",
"apis/rust/operator/types",
"binaries/cli",
"binaries/coordinator",
"binaries/daemon",
"binaries/runtime-api",
"binaries/runtime-shared-lib",
"binaries/runtime-python",
"binaries/mavlink2-bridge-node",
"binaries/ros2-bridge-node",
"examples/rust-dataflow/node",
"examples/rust-dataflow/status-node",
"examples/rust-dataflow/sink",
"examples/rust-dataflow/sink-dynamic",
"examples/rust-dynamic-add-remove/sender",
"examples/rust-dynamic-add-remove/receiver",
"examples/rust-dynamic-add-remove/filter",
"examples/ros2-bridge/rust/rust-ros2-example-node",
"examples/ros2-bridge/yaml-bridge-service/requester-node",
"examples/ros2-bridge/yaml-bridge-service/handler-node",
"examples/ros2-bridge/yaml-bridge-action/goal-node",
"examples/ros2-bridge/yaml-bridge-action-server/handler-node",
"examples/benchmark/node",
"examples/benchmark/sink",
"examples/service-example/client",
"examples/service-example/server",
"examples/action-example/client",
"examples/action-example/server",
"examples/multiple-daemons/node",
"examples/multiple-daemons/operator",
"examples/multiple-daemons/sink",
"examples/rust-operator-teardown/operator",
"examples/cpu-affinity-probe",
"examples/log-sink-tcp",
"examples/log-sink-file",
"examples/log-sink-alert",
"examples/cross-language/rust-sender",
"examples/cross-language/rust-receiver",
"examples/validated-pipeline/source",
"examples/validated-pipeline/transform",
"examples/validated-pipeline/sink",
"examples/error-propagation/producer",
"examples/error-propagation/consumer",
"examples/mavlink2-bridge/heartbeat-emitter",
"examples/mavlink2-bridge/mavlink-sim",
"examples/mavlink2-bridge/telemetry-printer-rust",
"libraries/arrow-convert",
"libraries/log-utils",
"libraries/coordinator-store",
"libraries/core",
"libraries/hub-client",
"libraries/message",
"libraries/recording",
"binaries/replay-node",
"binaries/record-node",
"libraries/extensions/download",
"libraries/extensions/telemetry/*",
"libraries/extensions/mavlink2-bridge",
# Opt-in tensor-pool transport. Outside the 1.0 compatibility
# guarantees — see libraries/extensions/tensor-pool/README.md.
"libraries/extensions/tensor-pool",
"libraries/extensions/tensor-pool/python",
"libraries/extensions/ros2-bridge",
"libraries/extensions/ros2-bridge/msg-gen",
"libraries/extensions/ros2-bridge/python",
"libraries/extensions/ros2-bridge/arrow",
"tests/queue_size_latest_data_rust/receive_data",
"tests/fault_tolerance/always_crash_node",
"tests/fault_tolerance/clean_exit_node",
"tests/fault_tolerance/delayed_crash_node",
"tests/fault_tolerance/drain_recording_node",
"tests/fault_tolerance/emit_then_exit_source_node",
"tests/fault_tolerance/event_log_observer_node",
"tests/fault_tolerance/fire_and_forget_source_node",
"tests/fault_tolerance/hang_after_init_node",
"tests/fault_tolerance/input_closed_observer_node",
"tests/fault_tolerance/late_dynamic_sender",
"tests/fault_tolerance/reconnect_survivor_node",
"tests/fault_tolerance/sigterm_ignoring_node",
"tests/fault_tolerance/silent_source_node",
"tests/fault_tolerance/stop_delay_node",
"tests/fault_tolerance/timed_burst_source_node",
"tests/fault_tolerance/timer_tick_recorder_node",
"xtask",
]
[workspace.package]
edition = "2024"
# Raising this does not raise `dora-message`, which pins its own lower
# `rust-version` so Kani's bundled toolchain can still build the proof
# harnesses (#3090). Bump that one only against Kani's rustc.
rust-version = "1.95.0"
# Python packages derive version from CARGO_PKG_VERSION automatically.
version = "1.0.0-rc.4"
description = "`dora` goal is to be a low latency, composable, and distributed data flow."
documentation = "https://dora-rs.ai"
readme = "./README.md"
license = "Apache-2.0"
repository = "https://github.com/dora-rs/dora/"
[workspace.dependencies]
dora-node-api = { version = "=1.0.0-rc.4", path = "apis/rust/node", default-features = false }
dora-node-api-python = { version = "=1.0.0-rc.4", path = "apis/python/node", default-features = false }
dora-operator-api = { version = "=1.0.0-rc.4", path = "apis/rust/operator", default-features = false }
dora-operator-api-macros = { version = "=1.0.0-rc.4", path = "apis/rust/operator/macros" }
dora-operator-api-types = { version = "=1.0.0-rc.4", path = "apis/rust/operator/types" }
dora-operator-api-python = { version = "=1.0.0-rc.4", path = "apis/python/operator" }
dora-operator-api-c = { version = "=1.0.0-rc.4", path = "apis/c/operator" }
dora-node-api-c = { version = "=1.0.0-rc.4", path = "apis/c/node" }
dora-core = { version = "=1.0.0-rc.4", path = "libraries/core" }
dora-hub-client = { version = "=1.0.0-rc.4", path = "libraries/hub-client" }
dora-recording = { version = "=1.0.0-rc.4", path = "libraries/recording" }
dora-arrow-convert = { version = "=1.0.0-rc.4", path = "libraries/arrow-convert" }
dora-tracing = { version = "=1.0.0-rc.4", path = "libraries/extensions/telemetry/tracing" }
dora-metrics = { version = "=1.0.0-rc.4", path = "libraries/extensions/telemetry/metrics" }
dora-download = { version = "=1.0.0-rc.4", path = "libraries/extensions/download" }
dora-log-utils = { version = "=1.0.0-rc.4", path = "libraries/log-utils" }
dora-coordinator-store = { version = "=1.0.0-rc.4", path = "libraries/coordinator-store" }
dora-cli = { version = "=1.0.0-rc.4", path = "binaries/cli" }
dora-runtime-api = { version = "=1.0.0-rc.4", path = "binaries/runtime-api" }
dora-runtime-shared-lib = { version = "=1.0.0-rc.4", path = "binaries/runtime-shared-lib" }
dora-runtime-python = { version = "=1.0.0-rc.4", path = "binaries/runtime-python" }
dora-daemon = { version = "=1.0.0-rc.4", path = "binaries/daemon" }
dora-coordinator = { version = "=1.0.0-rc.4", path = "binaries/coordinator" }
dora-ros2-bridge = { version = "=1.0.0-rc.4", path = "libraries/extensions/ros2-bridge" }
dora-ros2-bridge-msg-gen = { version = "=1.0.0-rc.4", path = "libraries/extensions/ros2-bridge/msg-gen" }
dora-ros2-bridge-python = { path = "libraries/extensions/ros2-bridge/python" }
dora-mavlink2-bridge = { version = "=1.0.0-rc.4", path = "libraries/extensions/mavlink2-bridge" }
dora-tensor-pool = { version = "=1.0.0-rc.4", path = "libraries/extensions/tensor-pool" }
dora-tensor-pool-python = { version = "=1.0.0-rc.4", path = "libraries/extensions/tensor-pool/python" }
dora-message = { version = "=1.0.0-rc.4", path = "libraries/message" }
# Declared here so `dora-ros2-bridge` and `dora-ros2-bridge-arrow` cannot drift
# apart on the ROS distro. `humble` selects the 24-byte `Gid` layout used by
# `rmw_dds_common` graph discovery (see `ros2-client`'s `src/gid.rs`), matching
# the distro our ROS2 harness runs (`scripts/ros2dev.sh`). Distro selection
# became an explicit Cargo feature in 0.10 (default `jazzy`, i.e. 16-byte Gid);
# 0.8 only had a `pre-iron-gid` opt-out. Changing this changes graph-discovery
# wire compatibility.
ros2-client = { version = "0.10.1", default-features = false, features = ["humble"] }
# Kept in step with the `cdr-encoding` that `rustdds` depends on, so the
# workspace resolves a single copy.
cdr-encoding = "0.11"
arrow = { version = "59", default-features = false }
arrow-schema = { version = "59" }
arrow-data = { version = "59" }
arrow-array = { version = "59" }
arrow-json = { version = "59" }
parquet = { version = "59" }
# pyo3 0.29 is blocked by `arrow-pyarrow` 59, which requires pyo3 ^0.28
# (only one `pyo3-ffi` may link against `python`).
pyo3 = { version = "0.28", features = [
"eyre",
"abi3-py311",
"multiple-pymethods",
] }
pythonize = "0.28"
pyo3-build-config = { version = "0.28", features = ["resolve-config", "abi3-py311"] }
# git2 0.21 dropped `https`/`ssh` from its default features (0.20 had
# `default = ["ssh", "https"]`), so request them explicitly — otherwise
# libgit2 ships without a TLS transport ("no TLS stream available").
git2 = { version = "0.21", features = ["vendored-openssl", "https", "ssh"] }
serde_yaml = "0.9.34"
zenoh = { version = "~1.9", default-features = false, features = ["shared-memory", "unstable", "transport_tcp", "transport_udp", "transport_unixsock-stream"] }
# Advanced pub/sub (schema-cache subtopic): retain the last schema sample so a
# late-joining subscriber fetches it via a history query. `unstable` gates the
# AdvancedPublisher/AdvancedSubscriber API and forwards zenoh's `unstable`.
zenoh-ext = { version = "~1.9", default-features = false, features = ["unstable"] }
serde_json = "1.0.150"
semver = { version = "1.0.28", features = ["serde"] }
thiserror = "2.0"
colored = "3.1.1"
inquire = { version = "0.9.4", default-features = false }
tokio = { version = "1.52", default-features = false }
tokio-stream = "0.1.18"
eyre = "0.6.12"
serde = { version = "1", features = ["derive"] }
tracing = "0.1.44"
uuid = { version = "1.23", features = ["serde", "v7"] }
futures = { version = "0.3.32", default-features = false, features = ["std", "async-await"] }
fs2 = "0.4.3"
redb = "4.1"
postcard = { version = "1.1.3", default-features = false, features = ["use-std"] }
flume = "0.12.0"
tempfile = "3.27.0"
proptest = "1.11"
mavlink = { version = "0.18", default-features = false, features = ["std", "serde", "dialect-common", "transport-tcp", "transport-udp", "transport-direct-serial"] }
serialport = "4.9"
url = "2.5"
# Opt in per crate via `[lints] workspace = true`. `cfg(kani)` gates the
# formal-verification proof harnesses (`make qa-kani`,
# docs/formal-verification.md).
[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(kani)"] }
[package]
name = "dora-examples"
rust-version.workspace = true
version = "0.0.0"
edition.workspace = true
license = "Apache-2.0"
publish = false
[features]
[dev-dependencies]
eyre = { workspace = true }
tokio = { workspace = true, features = ["full", "test-util"] }
dora-cli = { workspace = true }
dora-coordinator = { workspace = true }
dora-core = { workspace = true }
dora-daemon = { workspace = true }
dora-message = { workspace = true }
dora-tracing = { workspace = true }
dora-download = { workspace = true }
dunce = "1.0.5"
serde_yaml = { workspace = true }
serde_json = { workspace = true }
uuid = { workspace = true }
tracing = { workspace = true }
futures = { workspace = true }
tokio-stream = "0.1.18"
tempfile = { workspace = true }
redb = { workspace = true }
fs2 = { workspace = true }
assert2 = "0.4.0"
tokio-tungstenite = "0.29"
libloading = "0.9"
dora-operator-api-types = { workspace = true }
arrow-array = { workspace = true }
[[example]]
name = "c-dataflow"
path = "examples/c-dataflow/run.rs"
[[example]]
name = "rust-dataflow"
path = "examples/rust-dataflow/run.rs"
[[example]]
name = "rust-dataflow-git"
path = "examples/rust-dataflow-git/run.rs"
# TODO: Fix example #192
[[example]]
name = "rust-dataflow-url"
path = "examples/rust-dataflow-url/run.rs"
[[example]]
name = "cxx-dataflow"
path = "examples/c++-dataflow/run.rs"
[[example]]
name = "cxx-arrow-dataflow"
path = "examples/c++-arrow-dataflow/run.rs"
[[example]]
name = "cxx-service-action"
path = "examples/c++-service-action/run.rs"
[[example]]
name = "mavlink2-bridge-cxx"
path = "examples/mavlink2-bridge/run-cxx.rs"
[[example]]
name = "python-dataflow"
path = "examples/python-dataflow/run.rs"
[[example]]
name = "python-operator-dataflow"
path = "examples/python-operator-dataflow/run.rs"
[[example]]
name = "benchmark"
path = "examples/benchmark/run.rs"
[[example]]
name = "multiple-daemons"
path = "examples/multiple-daemons/run.rs"
[[example]]
name = "cmake-dataflow"
path = "examples/cmake-dataflow/run.rs"
[[test]]
name = "cpp-operator-cxx-bridge"
path = "tests/cpp-operator-cxx-bridge.rs"
[[test]]
name = "ws-cli-e2e"
path = "tests/ws-cli-e2e.rs"
[[test]]
name = "example-smoke"
path = "tests/example-smoke.rs"
[[test]]
name = "hub-smoke"
path = "tests/hub-smoke.rs"
[[test]]
name = "finish-straggler-e2e"
path = "tests/finish-straggler-e2e.rs"
[profile.release]
lto = "thin"
# mio 0.6.23 (pulled in on all platforms by mio-extras -> rustdds/ros2-client)
# computes struct field offsets with the pre-`offset_of!` hack
# `&(*(0 as *const T)).field as *const _ as usize` — a literal null-pointer
# dereference (src/sys/windows/selector.rs:470). Its Windows IOCP completion
# handlers run that macro on *every* UDP/TCP completion, so with
# `debug-assertions` on, rustc's null-pointer check fires a **non-unwinding**
# panic and aborts the process:
#
# thread 'RustDDS Participant 0 event loop' panicked at
# mio-0.6.23\src\sys\windows\udp.rs:401:25:
# null pointer dereference occurred
# thread caused non-unwinding panic. aborting.
#
# That kills the `dora-ros2-bridge` test binary on Windows (dora-rs/dora#3091)
# and any debug build that actually receives DDS traffic. Release builds are
# unaffected because `debug-assertions` is off there.
#
# This cannot be upgraded away: mio 0.6.23 (2019) is the last 0.6.x, and
# `mio_06 = "^0.6.23"` is a *non-optional direct* dependency of every published
# rustdds — 0.14.0 included — and of ros2-client 0.8-0.10, with mio-extras
# 2.0.6 requiring mio ^0.6.14 on top. So the #2854 port does not remove it.
# The only way to remove the UB rather than the check is to patch mio itself
# (a one-line `offset_of!` fix, via a git fork so `--cap-lints allow` still
# applies); that was weighed and deferred as too much supply-chain surface for
# this. Opting the one dependency out of debug assertions restores the behavior
# mio 0.6 was written against. The version is pinned in the spec on purpose: if
# mio 0.6.23 ever does leave the graph, `cargo check` warns that the spec
# matches nothing, which is the cue to delete this block.
[profile.dev.package."mio:0.6.23"]
debug-assertions = false
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "fat"
codegen-units = 1