-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
210 lines (175 loc) · 5.98 KB
/
Cargo.toml
File metadata and controls
210 lines (175 loc) · 5.98 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
[workspace]
members = [
".",
"crates/roboflow-core",
"crates/roboflow-storage",
"crates/roboflow-executor",
"crates/roboflow-media",
"crates/roboflow-dataset",
"crates/roboflow-pipeline",
"crates/roboflow-distributed",
]
resolver = "2"
[workspace.dependencies]
# Internal crates
roboflow-core = { path = "crates/roboflow-core", version = "0.2.0" }
roboflow-storage = { path = "crates/roboflow-storage", version = "0.2.0" }
roboflow-executor = { path = "crates/roboflow-executor", version = "0.2.0" }
roboflow-media = { path = "crates/roboflow-media", version = "0.2.0" }
roboflow-pipeline = { path = "crates/roboflow-pipeline", version = "0.2.0" }
roboflow-dataset = { path = "crates/roboflow-dataset", version = "0.2.0" }
roboflow-distributed = { path = "crates/roboflow-distributed", version = "0.2.0" }
# External dependencies
# Pinned to specific commit for reproducible builds
robocodec = { git = "https://github.com/archebase/robocodec", rev = "b27acf0e5881c38f8cc7f09e25c15787a440ae13" }
chrono = { version = "0.4", features = ["serde"] }
async-trait = "0.1"
tokio = { version = "1.40", features = ["rt-multi-thread", "sync"] }
num_cpus = "1.16"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tracing = "0.1"
thiserror = "1.0"
tempfile = "3.10"
[package]
name = "roboflow"
version = "0.2.0"
edition = "2024"
authors = ["Strata Contributors"]
license = "MulanPSL-2.0"
repository = "https://github.com/archebase/roboflow"
description = "Schema-driven message codec supporting CDR, protobuf, and JSON"
[lib]
crate-type = ["rlib"]
[dependencies]
robocodec = { workspace = true }
roboflow-core = { workspace = true }
roboflow-storage = { workspace = true }
roboflow-media = { workspace = true }
roboflow-pipeline = { workspace = true }
roboflow-distributed = { workspace = true }
roboflow-dataset = { workspace = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml_ng = "0.10"
async-trait = { workspace = true }
thiserror = "1.0"
anyhow = "1.0"
pest = "2.7"
pest_derive = "2.7"
byteorder = "1.5"
memmap2 = "0.9"
prost = "0.13"
prost-types = "0.13"
prost-reflect = "0.14"
hex = "0.4"
toml = "0.8"
regex = "1.10"
# Parallel processing
rayon = "1.10"
crossbeam-channel = "0.5"
crossbeam = "0.8"
crossbeam-queue = "0.3"
# Low-level system calls (for madvise on macOS)
libc = "0.2"
# System detection
num_cpus = "1.16"
sysinfo = "0.30"
raw-cpuid = { version = "11.0", optional = true }
hostname = "0.4"
# Compression
zstd = "0.13"
lz4_flex = "0.11"
bzip2 = "0.4"
crc32fast = "1.4"
# ROS bag and MCAP format support
mcap = "0.24"
rosbag = "0.6"
# Arena allocation for zero-copy pipeline
bumpalo = "3.16"
bytemuck = "1.15"
chrono = { version = "0.4", features = ["serde"] }
# Structured logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Async runtime (always enabled for distributed processing)
tokio = { version = "1.40", features = ["rt-multi-thread", "sync"] }
tokio-util = "0.7"
# TiKV distributed coordination (always enabled for distributed processing)
tikv-client = { version = "0.3" }
futures = { version = "0.3" }
bincode = { version = "1.3" }
# Dataset support (optional dependencies)
polars = { version = "0.41", features = ["parquet"], optional = true }
png = { version = "0.17", optional = true }
uuid = { version = "1.10", features = ["v4", "serde"] }
# Memory allocator (optional, for better concurrent performance on Linux)
tikv-jemallocator = { version = "0.6", optional = true }
# CLI argument parsing (used by profiler and other binaries)
clap = { version = "4.5", features = ["derive"], optional = true }
# Profiling support (optional, for profiler binary)
pprof = { version = "0.14", features = ["flamegraph", "cpp", "prost-codec", "frame-pointer"], optional = true }
# io_uring for Linux async I/O (optional, Linux only)
[target.'cfg(target_os = "linux")'.dependencies]
io-uring = { version = "0.7", optional = true }
# Optional features
[features]
# Note: Cloud storage (S3, OSS) is always available via roboflow-storage
# Use jemalloc as global allocator on Linux (better for concurrent workloads)
# On macOS, the default allocator is already excellent and jemalloc is not used
jemalloc = ["dep:tikv-jemallocator", "robocodec/jemalloc"]
# CLI support for binaries (profiler, etc.)
cli = ["dep:clap"]
# Profiling support for profiler binary (flamegraph generation)
profiling = ["dep:pprof", "cli"]
# CPU-aware WindowLog detection using CPUID (x86_64 only)
cpuid = ["dep:raw-cpuid"]
# io_uring support for Linux (high-performance async I/O)
# Requires: Linux 5.6+ kernel
io-uring-io = ["dep:io-uring"]
[dev-dependencies]
pretty_assertions = "1.4"
paste = "1.0"
criterion = "0.5"
tempfile = "3.10"
roboflow-distributed = { workspace = true }
bytes = "1.7"
futures = "0.3"
object_store = "0.11"
# Binaries
[[bin]]
name = "roboflow"
path = "src/bin/roboflow.rs"
# Examples
[[example]]
name = "lerobot_convert"
path = "examples/rust/lerobot_convert.rs"
[profile.release]
debug = true
# =============================================================================
# Workspace Lints - Technical Debt Prevention
# =============================================================================
#
# These lints are configured to prevent future technical debt while allowing
# existing code patterns. More strict lints can be enabled incrementally as
# debt is paid down.
[workspace.lints.clippy]
# Complexity - prevent cognitive complexity hotspots (key for maintainability)
cognitive_complexity = "warn"
# Code quality - encourage best practices
# Note: unwrap_used and expect_used set to allow due to existing debt (~600 occurrences)
unwrap_used = "allow"
expect_used = "allow"
# Allowed due to existing debt - can be enabled incrementally
doc_markdown = "allow"
items_after_statements = "allow"
str_to_string = "allow"
use_self = "allow"
wildcard_imports = "allow"
enum_glob_use = "allow"
needless_continue = "allow"
manual_assert = "allow"
map_unwrap_or = "allow"
# Inherit workspace lints in all workspace members
[lints]
workspace = true