forked from rerun-io/rerun
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
900 lines (841 loc) · 39.2 KB
/
Cargo.toml
File metadata and controls
900 lines (841 loc) · 39.2 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
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
[workspace]
resolver = "2"
members = [
"crates/build/*",
"crates/store/*",
"crates/top/*",
"crates/utils/*",
"crates/viewer/*",
"docs/snippets",
"examples/rust/*",
"rerun_py",
"run_wasm",
"tests/rust/log_benchmark",
"tests/rust/plot_dashboard_stress",
"tests/rust/re_integration_test",
"tests/rust/test_*",
]
exclude = ["examples/rust/revy", "examples/rust/chess_robby_fischer"]
[workspace.package]
authors = ["rerun.io <opensource@rerun.io>"]
edition = "2024"
homepage = "https://rerun.io"
include = [
"../../Cargo.lock", # So that users can pass `--locked` to `cargo install rerun-cli`
"../../LICENSE-APACHE",
"../../LICENSE-MIT",
"**/*.rs",
"Cargo.toml",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rerun-io/rerun"
rust-version = "1.92"
version = "0.30.0-alpha.1+dev"
[workspace.metadata.cargo-shear]
ignored = [
# rerun crates
"rerun_c",
"re_dev_tools",
"rerun-cli",
"re_types_builder",
"re_protos_builder",
"re_renderer_examples",
# used for specific targets or features
"chrono", # TODO(#11368)
"home",
"profiling",
"wayland-sys",
]
[workspace.dependencies]
# When using alpha-release, always use exact version, e.g. `version = "=0.x.y-alpha.z"
# This is because we treat alpha-releases as incompatible, but semver doesn't.
# In particular: if we compile rerun 0.3.0-alpha.0 we only want it to use
# re_log_types 0.3.0-alpha.0, NOT 0.3.0-alpha.4 even though it is newer and semver-compatible.
# crates/build:
re_build_info = { path = "crates/build/re_build_info", version = "=0.30.0-alpha.1", default-features = false }
re_build_tools = { path = "crates/build/re_build_tools", version = "=0.30.0-alpha.1", default-features = false }
re_dev_tools = { path = "crates/build/re_dev_tools", version = "=0.30.0-alpha.1", default-features = false }
re_protos_builder = { path = "crates/build/re_protos_builder", version = "=0.30.0-alpha.1", default-features = false }
re_types_builder = { path = "crates/build/re_types_builder", version = "=0.30.0-alpha.1", default-features = false }
# crates/store:
re_arrow_combinators = { path = "crates/store/re_arrow_combinators", version = "=0.30.0-alpha.1", default-features = false }
re_chunk = { path = "crates/store/re_chunk", version = "=0.30.0-alpha.1", default-features = false }
re_chunk_store = { path = "crates/store/re_chunk_store", version = "=0.30.0-alpha.1", default-features = false }
re_data_loader = { path = "crates/store/re_data_loader", version = "=0.30.0-alpha.1", default-features = false }
re_data_source = { path = "crates/store/re_data_source", version = "=0.30.0-alpha.1", default-features = false }
re_dataframe = { path = "crates/store/re_dataframe", version = "=0.30.0-alpha.1", default-features = false }
re_datafusion = { path = "crates/store/re_datafusion", version = "=0.30.0-alpha.1", default-features = false }
re_entity_db = { path = "crates/store/re_entity_db", version = "=0.30.0-alpha.1", default-features = false }
re_grpc_client = { path = "crates/store/re_grpc_client", version = "=0.30.0-alpha.1", default-features = false }
re_grpc_server = { path = "crates/store/re_grpc_server", version = "=0.30.0-alpha.1", default-features = false }
re_lenses = { path = "crates/store/re_lenses", version = "=0.30.0-alpha.1", default-features = false }
re_log_channel = { path = "crates/store/re_log_channel", version = "=0.30.0-alpha.1", default-features = false }
re_log_encoding = { path = "crates/store/re_log_encoding", version = "=0.30.0-alpha.1", default-features = false }
re_log_types = { path = "crates/store/re_log_types", version = "=0.30.0-alpha.1", default-features = false }
re_mcap = { path = "crates/store/re_mcap", version = "=0.30.0-alpha.1", default-features = false }
re_protos = { path = "crates/store/re_protos", version = "=0.30.0-alpha.1", default-features = false }
re_query = { path = "crates/store/re_query", version = "=0.30.0-alpha.1", default-features = false }
re_redap_client = { path = "crates/store/re_redap_client", version = "=0.30.0-alpha.1", default-features = false }
re_redap_tests = { path = "crates/store/re_redap_tests", version = "=0.30.0-alpha.1", default-features = false }
re_sdk_types = { path = "crates/store/re_sdk_types", version = "=0.30.0-alpha.1", default-features = false }
re_server = { path = "crates/store/re_server", version = "=0.30.0-alpha.1", default-features = false }
re_sorbet = { path = "crates/store/re_sorbet", version = "=0.30.0-alpha.1", default-features = false }
re_tf = { path = "crates/store/re_tf", version = "=0.30.0-alpha.1", default-features = false }
re_types_core = { path = "crates/store/re_types_core", version = "=0.30.0-alpha.1", default-features = false }
re_uri = { path = "crates/store/re_uri", version = "=0.30.0-alpha.1", default-features = false }
# crates/top:
re_sdk = { path = "crates/top/re_sdk", version = "=0.30.0-alpha.1", default-features = false }
rerun = { path = "crates/top/rerun", version = "=0.30.0-alpha.1", default-features = false }
rerun_c = { path = "crates/top/rerun_c", version = "=0.30.0-alpha.1", default-features = false }
rerun-cli = { path = "crates/top/rerun-cli", version = "=0.30.0-alpha.1", default-features = false }
# crates/utils:
re_analytics = { path = "crates/utils/re_analytics", version = "=0.30.0-alpha.1", default-features = false }
re_arrow_util = { path = "crates/utils/re_arrow_util", version = "=0.30.0-alpha.1", default-features = false }
re_auth = { path = "crates/utils/re_auth", version = "=0.30.0-alpha.1", default-features = false }
re_backoff = { path = "crates/utils/re_backoff", version = "=0.30.0-alpha.1", default-features = false }
re_byte_size = { path = "crates/utils/re_byte_size", version = "=0.30.0-alpha.1", default-features = false }
re_capabilities = { path = "crates/utils/re_capabilities", version = "=0.30.0-alpha.1", default-features = false }
re_case = { path = "crates/utils/re_case", version = "=0.30.0-alpha.1", default-features = false }
re_crash_handler = { path = "crates/utils/re_crash_handler", version = "=0.30.0-alpha.1", default-features = false }
re_error = { path = "crates/utils/re_error", version = "=0.30.0-alpha.1", default-features = false }
re_format = { path = "crates/utils/re_format", version = "=0.30.0-alpha.1", default-features = false }
re_int_histogram = { path = "crates/utils/re_int_histogram", version = "=0.30.0-alpha.1", default-features = false }
re_log = { path = "crates/utils/re_log", version = "=0.30.0-alpha.1", default-features = false }
re_memory = { path = "crates/utils/re_memory", version = "=0.30.0-alpha.1", default-features = false }
re_mutex = { path = "crates/utils/re_mutex", version = "=0.30.0-alpha.1", default-features = false }
re_perf_telemetry = { path = "crates/utils/re_perf_telemetry", version = "=0.30.0-alpha.1", default-features = false }
re_quota_channel = { path = "crates/utils/re_quota_channel", version = "=0.30.0-alpha.1", default-features = false }
re_ros_msg = { path = "crates/utils/re_ros_msg", version = "=0.30.0-alpha.1", default-features = false }
re_rvl = { path = "crates/utils/re_rvl", version = "=0.30.0-alpha.1", default-features = false }
re_span = { path = "crates/utils/re_span", version = "=0.30.0-alpha.1", default-features = false }
re_string_interner = { path = "crates/utils/re_string_interner", version = "=0.30.0-alpha.1", default-features = false }
re_tracing = { path = "crates/utils/re_tracing", version = "=0.30.0-alpha.1", default-features = false }
re_tuid = { path = "crates/utils/re_tuid", version = "=0.30.0-alpha.1", default-features = false }
re_video = { path = "crates/utils/re_video", version = "=0.30.0-alpha.1", default-features = false }
# crates/viewer:
re_arrow_ui = { path = "crates/viewer/re_arrow_ui", version = "=0.30.0-alpha.1", default-features = false }
re_blueprint_tree = { path = "crates/viewer/re_blueprint_tree", version = "=0.30.0-alpha.1", default-features = false }
re_chunk_store_ui = { path = "crates/viewer/re_chunk_store_ui", version = "=0.30.0-alpha.1", default-features = false }
re_component_fallbacks = { path = "crates/viewer/re_component_fallbacks", version = "=0.30.0-alpha.1", default-features = false }
re_component_ui = { path = "crates/viewer/re_component_ui", version = "=0.30.0-alpha.1", default-features = false }
re_context_menu = { path = "crates/viewer/re_context_menu", version = "=0.30.0-alpha.1", default-features = false }
re_data_ui = { path = "crates/viewer/re_data_ui", version = "=0.30.0-alpha.1", default-features = false }
re_dataframe_ui = { path = "crates/viewer/re_dataframe_ui", version = "=0.30.0-alpha.1", default-features = false }
re_memory_view = { path = "crates/viewer/re_memory_view", version = "=0.30.0-alpha.1", default-features = false }
re_recording_panel = { path = "crates/viewer/re_recording_panel", version = "=0.30.0-alpha.1", default-features = false }
re_redap_browser = { path = "crates/viewer/re_redap_browser", version = "=0.30.0-alpha.1", default-features = false }
re_renderer = { path = "crates/viewer/re_renderer", version = "=0.30.0-alpha.1", default-features = false }
re_renderer_examples = { path = "crates/viewer/re_renderer_examples", version = "=0.30.0-alpha.1", default-features = false }
re_selection_panel = { path = "crates/viewer/re_selection_panel", version = "=0.30.0-alpha.1", default-features = false }
re_test_context = { path = "crates/viewer/re_test_context", version = "=0.30.0-alpha.1", default-features = false }
re_test_viewport = { path = "crates/viewer/re_test_viewport", version = "=0.30.0-alpha.1", default-features = false }
re_time_panel = { path = "crates/viewer/re_time_panel", version = "=0.30.0-alpha.1", default-features = false }
re_ui = { path = "crates/viewer/re_ui", version = "=0.30.0-alpha.1", default-features = false }
re_view = { path = "crates/viewer/re_view", version = "=0.30.0-alpha.1", default-features = false }
re_view_bar_chart = { path = "crates/viewer/re_view_bar_chart", version = "=0.30.0-alpha.1", default-features = false }
re_view_dataframe = { path = "crates/viewer/re_view_dataframe", version = "=0.30.0-alpha.1", default-features = false }
re_view_graph = { path = "crates/viewer/re_view_graph", version = "=0.30.0-alpha.1", default-features = false }
re_view_map = { path = "crates/viewer/re_view_map", version = "=0.30.0-alpha.1", default-features = false }
re_view_spatial = { path = "crates/viewer/re_view_spatial", version = "=0.30.0-alpha.1", default-features = false }
re_view_tensor = { path = "crates/viewer/re_view_tensor", version = "=0.30.0-alpha.1", default-features = false }
re_view_text_document = { path = "crates/viewer/re_view_text_document", version = "=0.30.0-alpha.1", default-features = false }
re_view_text_log = { path = "crates/viewer/re_view_text_log", version = "=0.30.0-alpha.1", default-features = false }
re_view_time_series = { path = "crates/viewer/re_view_time_series", version = "=0.30.0-alpha.1", default-features = false }
re_viewer = { path = "crates/viewer/re_viewer", version = "=0.30.0-alpha.1", default-features = false }
re_viewer_context = { path = "crates/viewer/re_viewer_context", version = "=0.30.0-alpha.1", default-features = false }
re_viewport = { path = "crates/viewer/re_viewport", version = "=0.30.0-alpha.1", default-features = false }
re_viewport_blueprint = { path = "crates/viewer/re_viewport_blueprint", version = "=0.30.0-alpha.1", default-features = false }
re_web_viewer_server = { path = "crates/viewer/re_web_viewer_server", version = "=0.30.0-alpha.1", default-features = false }
# Rerun crates in other repos:
re_mp4 = "0.4.0"
# If this package fails to build, install `nasm` locally, or build through `pixi`.
# NOTE: we use `dav1d` as an alias for our own re_rav1d crate
# See https://github.com/rerun-io/re_rav1d/pull/2
dav1d = { package = "re_rav1d", version = "0.1.3", default-features = false }
# dav1d = { version = "0.10.3" } # Requires separate install of `dav1d` library. Fast in debug builds. Useful for development.
# core egui-crates:
ecolor = "0.33.3"
eframe = { version = "0.33.3", default-features = false, features = [
"accesskit",
"default_fonts",
"wayland",
"x11",
] }
egui = { version = "0.33.3", features = ["callstack", "color-hex", "rayon"] }
egui_extras = { version = "0.33.3", features = ["http", "image", "serde", "svg"] }
egui_kittest = { version = "0.33.3", features = ["wgpu", "snapshot", "eframe"] }
egui-wgpu = "0.33.3"
emath = "0.33.3"
# other egui crates:
egui_commonmark = { version = "0.22.0", default-features = false }
egui_dnd = { version = "0.14.0" }
egui_plot = "0.34.1" # https://github.com/emilk/egui_plot
egui_table = "0.7.0" # https://github.com/rerun-io/egui_table
egui_tiles = "0.14.1" # https://github.com/rerun-io/egui_tiles
walkers = "0.50.0"
# All of our direct external dependencies should be found here:
ahash = "0.8"
anyhow = { version = "1.0", default-features = false }
argh = "0.1.13"
arrayvec = "0.7"
array-init = "2.1"
arrow = { version = "56.1", default-features = false, features = [
# NOTE: Similar to `datafusion`, we enable many features on a workspace level
# to avoid re-compilation when changing compile targets.
"ffi",
"ipc",
"json",
] }
async-stream = "0.3"
async-trait = "0.1.89"
axum = "0.8.6"
backtrace = "0.3"
base64 = "0.22"
bincode = "1.3"
bit-vec = "0.8"
bitflags = { version = "2.9", features = ["bytemuck"] }
bytemuck = { version = "1.24", features = ["extern_crate_alloc"] }
byteorder = "1.5.0"
bytes = "1.11.1"
camino = "1.2"
cargo_metadata = "0.23.0"
cargo-run-wasm = "0.4.0"
cdr-encoding = "0.10.2"
cfg_aliases = "0.2.0"
cfg-if = "1.0"
chrono = { version = "0.4.42", default-features = false } # Needed for datafusion, see `re_datafusion`'s Cargo.toml
clang-format = "0.3"
clap = { version = "4.5", features = ["derive"] }
clean-path = "0.2.0"
colored = "2.2" # Old b/c of dify
comfy-table = { version = "7.2", default-features = false }
console_error_panic_hook = "0.1.7"
const_format = "0.2.35"
convert_case = "0.6.0"
criterion = "0.5.0"
cros-codecs = "0.0.6"
crossbeam = "0.8.0"
dae-parser = "0.11.0"
datafusion = { version = "50.1.0", default-features = false, features = [
# NOTE: we enable the same features everywhere
# because otherwise we will recompile datafusion all the time based on our current compile target.
# The features here are the same as in https://github.com/lance-format/lance/blob/v0.38.0/Cargo.toml#L99-L107
# This is very hacky, and I don't like it.
"crypto_expressions",
"datetime_expressions",
"encoding_expressions",
"nested_expressions",
"regex_expressions",
"string_expressions",
"unicode_expressions",
] }
datafusion-ffi = "50.1.0"
directories = "6.0"
document-features = "0.2.11"
econtext = "0.2.0" # Prints error contexts on crashes
ehttp = "0.6.0"
enumset = "1.1.10"
env_filter = { version = "0.1.3", default-features = false }
env_logger = { version = "0.11.8", default-features = false }
ffmpeg-sidecar = { version = "2.2.0", default-features = false }
fixed = { version = "1.29", default-features = false }
fjadra = "0.2.1"
flatbuffers = "25.9.23"
futures = "0.3.31"
futures-util = "0.3.31"
getrandom = "0.3.3"
glam = { version = "0.30.8", features = ["debug-glam-assert", "serde"] }
glob = "0.3.3"
gltf = "1.4"
h264-reader = "0.8.0"
half = { version = "2.6.0", features = ["bytemuck"] }
hexasphere = "16.0.0"
home = "0.5.11"
http = "1.3.1"
http-body = "1.0.1"
image = { version = "0.25.6", default-features = false, features = ["jpeg", "png"] }
indent = "0.1.1"
indexmap = { version = "2.11", features = [
# indexmap version chosen to align with other dependencies
"std",
"serde",
] }
indicatif = "0.18.0" # Progress bar
infer = "0.16.0" # infer MIME type by checking the magic number signaturefer MIME type by checking the magic number signature
insta = "1.43"
itertools = "0.14.0"
jiff = { version = "0.2.15", features = ["js"] }
js-sys = "0.3.77"
jsonwebtoken = { version = "9.3", default-features = false }
lance = { version = "0.38.2", default-features = false } # When you update this, also update the list of features enabled for `datafusion` (~50 lines up)
lance-index = { version = "0.38.2", default-features = false }
lance-linalg = { version = "0.38.2", default-features = false }
libc = "0.2.176"
linked-hash-map = { version = "0.5.6", default-features = false }
log = "0.4.28"
log-once = "0.4.1"
lz4_flex = "0.12"
macaw = "0.30.0"
mcap = "0.23.3"
memmap2 = "0.9.8"
memory-stats = "1.2"
mimalloc = { version = "0.1.48", features = ["v3"] }
mime_guess2 = "2.3" # infer MIME type by file extension, and map mime to file extension
mint = "0.5.9"
natord = "1.0.9"
ndarray = "0.16.1"
never = "0.1.0"
nohash-hasher = "0.2.0"
notify = { version = "8.2", features = ["macos_kqueue"] }
num-derive = "0.4.2"
num-traits = "0.2.19"
numpy = "0.25.0"
objc2-app-kit = "0.3.2"
opentelemetry = { version = "0.31.0", features = ["metrics"] }
opentelemetry-appender-tracing = "0.31.0"
opentelemetry-http = "0.31.0"
opentelemetry-otlp = { version = "0.31.0", features = ["gzip-tonic"] }
opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio"] }
ordered-float = "5.1.0"
parking_lot = { version = "0.12.5", features = ["serde"] }
parquet = { version = "56.1", default-features = false }
paste = "1.0"
pathdiff = "0.2.3"
percent-encoding = "2.3"
pico-args = "0.5.0"
pin-project-lite = "0.2.16"
ply-rs-bw = { version = "=3.0.0", default-features = false } # ply-rs-bw has released semver breaking changes in patch releases before. Fool me once, shame on you…
poll-promise = "0.3.0"
pollster = "0.4.0"
prettyplease = "0.2.37"
proc-macro2 = { version = "1.0", default-features = false }
profiling = { version = "1.0.17", default-features = false }
prometheus-client = "0.24.0"
prost = "0.14.1"
prost-build = "0.14.1"
prost-reflect = "0.16.1"
prost-types = "0.14.1"
protoc-prebuilt = "0.3.0"
puffin = "0.19.1"
puffin_http = "0.16.1"
pyo3 = "0.25.1"
pyo3-build-config = "0.25.1"
quote = "1.0"
rand = { version = "0.9.2", default-features = false, features = [
"small_rng",
"std",
"thread_rng",
] }
rand_distr = { version = "0.5.1", default-features = false, features = ["std"] }
raw-window-handle = "0.6.2"
rayon = "1.11"
regex-lite = "0.1.7"
rexif = "0.7.5"
rfd = { version = "0.17.2", default-features = false, features = ["xdg-portal"] }
ron = { version = "0.11.0", features = ["integer128"] }
roxmltree = "0.20.0"
rustdoc-json = "0.9.7"
rustdoc-types = "0.56.0"
rustls = { version = "0.23.32", default-features = false }
saturating_cast = "0.1"
scuffle-av1 = "0.1.4"
scuffle-bytes-util = "0.1.4"
semver = "1.0.27"
seq-macro = "0.3.6"
serde = { version = "1.0", features = ["derive"] }
serde_bytes = "0.11.19"
serde_json = { version = "1.0", default-features = false, features = ["std"] }
serde-wasm-bindgen = "0.6.5"
sha2 = "0.10.9"
similar-asserts = "1.7.0"
slotmap = { version = "1.0.7", features = ["serde"] }
smallvec = { version = "1.15", features = ["const_generics", "union"] }
static_assertions = "1.1"
stl_io = "0.8.5"
strum = { version = "0.26.3", features = ["derive"] } # need to update re_rav1d first
strum_macros = "0.26.4" # need to update re_rav1d first
sublime_fuzzy = "0.7.0"
syn = "2.0"
sysinfo = { version = "0.30.13", default-features = false }
tap = "1.0.1"
tempfile = "3.23"
thiserror = "2.0.17"
tiff = "0.9.1"
tiny_http = { version = "0.12.0", default-features = false }
tobj = "4.0"
tokio = { version = "1.47.1", default-features = false }
tokio-stream = "0.1.17"
tokio-util = { version = "0.7.16", default-features = false }
toml = { version = "0.9.8", default-features = false }
tonic = { version = "0.14.2", default-features = false }
tonic-prost = { version = "0.14.2", default-features = false }
tonic-prost-build = { version = "0.14.2", default-features = false }
tonic-web = "0.14.2"
tonic-web-wasm-client = "0.8.0"
tower = "0.5.2"
tower-http = "0.6.6"
tower-service = "0.3.3"
tracing = "0.1.41"
tracing-opentelemetry = "0.32.0"
tracing-subscriber = { version = "0.3.20", features = ["tracing-log", "fmt", "env-filter"] }
tracing-tracy = { version = "0.11.4", default-features = false, features = [
"broadcast",
"callstack-inlines",
"code-transfer",
"context-switch-tracing",
"enable",
"ondemand", # much nicer for a long-lived program
"system-tracing",
] } # no sampling, it's very noisy and not that useful
type-map = "0.5.1"
typenum = "1.19"
unindent = "0.2.4"
urdf-rs = "0.9.0"
ureq = "2.12.1"
url = "2.5"
uuid = { version = "1.18", features = ["serde", "v4", "js"] }
vec1 = { version = "1.12", features = ["serde", "smallvec-v1"] }
walkdir = "2.5"
# TODO(#8766): `rerun_js/web-viewer/build-wasm.mjs` is HIGHLY sensitive to changes in `wasm-bindgen`.
# Whenever updating `wasm-bindgen`, update this and the narrower dependency specifications in
# `crates/viewer/re_viewer/Cargo.toml`, and make sure that notebooks still work:
# See `rerun_notebook/README.md` for how to run notebooks.
# Try running a cell which starts a viewer, and then running it again.
# There should be no errors in the browser console.
# Do not make this an `=` dependency, because that may break Rust users’ builds when a newer
# version is released, even if they are not building the web viewer.
# For details see https://github.com/rerun-io/rerun/issues/8766
wasm-bindgen = "0.2.100" # ⚠️ read above notice before touching this!
wasm-bindgen-cli-support = "=0.2.100" # ⚠️ read above notice before touching this!
wasm-bindgen-futures = "0.4.50"
wayland-sys = "0.31.7"
web-sys = "0.3.77"
web-time = "1.1.0"
webbrowser = "1.0"
winit = { version = "0.30.12", default-features = false }
# TODO(andreas): Try to get rid of `fragile-send-sync-non-atomic-wasm`. This requires re_renderer being aware of single-thread restriction on resources.
# See also https://gpuweb.github.io/gpuweb/explainer/#multithreading-transfer (unsolved part of the Spec as of writing!)
wgpu = { version = "27.0.1", default-features = false, features = [
# Backends (see https://docs.rs/wgpu/latest/wgpu/#feature-flags)
"gles",
"metal",
"vulkan-portability", # Enables use of Vulkan on MacOS. We use this for software rasterizing our CI (there aren't any Metal software rasterizers and we had issues with flaky tests when creating lots of Metal devices in parallel)
"vulkan",
"webgl",
"webgpu",
#"dx12", # DX12 backend on wgpu isn't as stable. Also, we want to reduce the number of backends on native. Ideally we only have Vulkan & Metal, but we also keep GL as a manual fallback.
#"angle", # As above, we want to limit the numbers of backends we support. GL support via angle isn't great and we didn't need it so far.
# Shader options:
"wgsl",
# Other:
"fragile-send-sync-non-atomic-wasm",
] }
xshell = "0.2.7"
xxhash-rust = { version = "0.8", features = ["xxh32"] }
zip = { version = "2.1", default-features = false, features = ["deflate"] }
# ---------------------------------------------------------------------------------
[profile]
## Dev
# Our dev profile has some optimizations turned on, as well as debug assertions.
[profile.dev]
opt-level = 1 # Make debug builds run faster
# See <https://github.com/rerun-io/rerun/pull/9094> for a thorough explanation of why.
# This does not affect cfg(debug_assertions).
# Use the `debugging` profile (see below) if you need debug symbols.
debug = false
# Use the following command to grab the list of workspace crates:
# cargo metadata --no-deps --format-version 1 | jq '.packages[].name' | rg '"re_'
#
# There is, as far we know, no way to do this without enumerating all crates manually.
[profile.dev.package]
"re_analytics".debug = true
"re_arrow_ui".debug = true
"re_arrow_util".debug = true
"re_auth".debug = true
"re_blueprint_tree".debug = true
"re_build_info".debug = true
"re_build_tools".debug = true
"re_byte_size".debug = true
"re_capabilities".debug = true
"re_case".debug = true
"re_chunk_store_ui".debug = true
"re_chunk_store".debug = true
"re_chunk".debug = true
"re_component_ui".debug = true
"re_context_menu".debug = true
"re_crash_handler".debug = true
"re_data_loader".debug = true
"re_data_source".debug = true
"re_data_ui".debug = true
"re_dataframe_ui".debug = true
"re_dataframe".debug = true
"re_datafusion".debug = true
"re_dev_tools".debug = true
"re_entity_db".debug = true
"re_error".debug = true
"re_format".debug = true
"re_grpc_client".debug = true
"re_grpc_server".debug = true
"re_int_histogram".debug = true
"re_integration_test".debug = true
"re_log_channel".debug = true
"re_log_encoding".debug = true
"re_log_types".debug = true
"re_log".debug = true
"re_mcap".debug = true
"re_memory".debug = true
"re_perf_telemetry".debug = true
"re_protos_builder".debug = true
"re_protos".debug = true
"re_query".debug = true
"re_recording_panel".debug = true
"re_redap_browser".debug = true
"re_redap_client".debug = true
"re_renderer_examples".debug = true
"re_renderer".debug = true
"re_sdk".debug = true
"re_selection_panel".debug = true
"re_server".debug = true
"re_sorbet".debug = true
"re_span".debug = true
"re_string_interner".debug = true
"re_test_context".debug = true
"re_test_viewport".debug = true
"re_tf".debug = true
"re_time_panel".debug = true
"re_tracing".debug = true
"re_tuid".debug = true
"re_types_builder".debug = true
"re_types_core".debug = true
"re_sdk_types".debug = true
"re_ui".debug = true
"re_uri".debug = true
"re_video".debug = true
"re_view_bar_chart".debug = true
"re_view_dataframe".debug = true
"re_view_graph".debug = true
"re_view_map".debug = true
"re_view_spatial".debug = true
"re_view_tensor".debug = true
"re_view_text_document".debug = true
"re_view_text_log".debug = true
"re_view_time_series".debug = true
"re_view".debug = true
"re_viewer_context".debug = true
"re_viewer".debug = true
"re_viewport_blueprint".debug = true
"re_viewport".debug = true
"re_web_viewer_server".debug = true
# panic = "abort" leads to better optimizations and smaller binaries (and is the default in Wasm anyways),
# but it also means backtraces don't work with the `backtrace` library (https://github.com/rust-lang/backtrace-rs/issues/397).
# egui has a feature where if you hold down all modifiers keys on your keyboard and hover any UI widget,
# you will see the backtrace to that widget, and we don't want to break that feature in dev builds.
# Optimize all dependencies even in debug builds (does not affect workspace packages):
[profile.dev.package."*"]
opt-level = 2
# Make extra sure the AV1 decoder is optimized in dev builds. otherwise decoding comes to a crawl in debug builds.
[profile.dev.package.re_rav1d]
opt-level = 3
debug-assertions = false
## Release
[profile.release]
# debug = true # good for profilers
panic = "abort" # This leads to better optimizations and smaller binaries (and is the default in Wasm anyways).
lto = "thin" # This leads to smaller binaries, but slower compile times.
codegen-units = 1 # Smaller binaries (but slower compile time)
[profile.web-release]
panic = 'abort' # Removes panic handling code
inherits = "release"
lto = true
opt-level = 'z' # Optimize for size
codegen-units = 1
## Bench
[profile.bench]
debug = false
## Debugging
# Set up a `debugging` profile that turns of optimization of the workspace and select packages.
# Note that the profile name `debug` is reserved.
[profile.debugging]
inherits = "dev"
opt-level = 0
debug = true
[profile.debugging.package.egui]
opt-level = 0 # we often debug egui via Rerun
[profile.debugging.build-override]
debug = true # enable debug symbols for build scripts
# ---------------------------------------------------------------------------------
[workspace.lints.rust]
unknown_lints = "deny"
unsafe_code = "deny"
absolute_paths_not_starting_with_crate = "warn"
elided_lifetimes_in_paths = "warn"
future_incompatible = { level = "warn", priority = -1 }
non_ascii_idents = "warn"
nonstandard_style = { level = "warn", priority = -1 }
noop_method_call = "warn"
rust_2018_idioms = { level = "warn", priority = -1 }
rust_2021_prelude_collisions = "warn"
semicolon_in_expressions_from_macros = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn" # `unsafe_op_in_unsafe_fn` may become the default in future Rust versions: https://github.com/rust-lang/rust/issues/71668
unexpected_cfgs = { level = "deny", check-cfg = [
'cfg(TODO)', # NOLINT allow `#[cfg(TODO)]` to compile (it will still fail CI)
] }
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
trivial_casts = "allow"
unused_qualifications = "allow"
[workspace.lints.rustdoc]
all = "warn"
missing_crate_level_docs = "warn"
# See also clippy.toml
[workspace.lints.clippy]
allow_attributes = "warn"
as_ptr_cast_mut = "warn"
await_holding_lock = "warn"
bool_to_int_with_if = "warn"
branches_sharing_code = "warn"
cast_possible_wrap = "warn"
char_lit_as_u8 = "warn"
checked_conversions = "warn"
clear_with_drain = "warn"
cloned_instead_of_copied = "warn"
coerce_container_to_any = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
default_union_representation = "warn"
derive_partial_eq_without_eq = "warn"
disallowed_macros = "warn" # See clippy.toml
disallowed_methods = "warn" # See clippy.toml
disallowed_names = "warn" # See clippy.toml
disallowed_script_idents = "warn" # See clippy.toml
disallowed_types = "warn" # See clippy.toml
doc_broken_link = "warn"
doc_comment_double_space_linebreaks = "warn"
doc_include_without_cfg = "warn"
doc_link_with_quotes = "warn"
doc_markdown = "warn"
elidable_lifetime_names = "warn"
empty_enum = "warn"
empty_enum_variants_with_brackets = "warn"
empty_line_after_outer_attr = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
exit = "warn"
expl_impl_clone_on_copy = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
fallible_impl_from = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
float_cmp_const = "warn"
fn_params_excessive_bools = "warn"
fn_to_numeric_cast_any = "warn"
from_iter_instead_of_collect = "warn"
get_unwrap = "warn"
if_let_mutex = "warn"
ignore_without_reason = "warn"
implicit_clone = "warn"
implied_bounds_in_impls = "warn"
imprecise_flops = "warn"
inconsistent_struct_constructor = "warn"
index_refutable_slice = "warn"
inefficient_to_string = "warn"
infinite_loop = "warn"
into_iter_without_iter = "warn"
invalid_upcast_comparisons = "warn"
ip_constant = "warn"
iter_filter_is_ok = "warn"
iter_filter_is_some = "warn"
iter_not_returning_iterator = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_without_into_iter = "warn"
large_digit_groups = "warn"
large_futures = "warn"
large_include_file = "warn"
large_stack_arrays = "warn"
large_stack_frames = "warn"
large_types_passed_by_value = "warn"
let_underscore_must_use = "warn"
let_unit_value = "warn"
linkedlist = "warn"
literal_string_with_formatting_args = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_assert = "warn"
manual_clamp = "warn"
manual_instant_elapsed = "warn"
manual_is_power_of_two = "warn"
manual_is_variant_and = "warn"
manual_let_else = "warn"
manual_midpoint = "warn" # NOTE using `midpoint` is nicer for readability, but slower for floats
manual_ok_or = "warn"
manual_string_new = "warn"
map_err_ignore = "warn"
map_flatten = "warn"
match_bool = "warn"
match_same_arms = "warn"
match_wild_err_arm = "warn"
match_wildcard_for_single_variants = "warn"
mem_forget = "warn"
mismatching_type_param_order = "warn"
missing_enforced_import_renames = "warn"
missing_safety_doc = "warn"
mixed_attributes_style = "warn"
mut_mut = "warn"
mutex_integer = "warn"
needless_borrow = "warn"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
negative_feature_names = "warn"
non_std_lazy_statics = "warn"
non_zero_suggestions = "warn"
nonstandard_macro_braces = "warn"
only_used_in_recursion = "warn"
option_as_ref_cloned = "warn"
option_option = "warn"
or_fun_call = "warn"
path_buf_push_overwrite = "warn"
pathbuf_init_then_push = "warn"
precedence_bits = "warn"
ptr_as_ptr = "warn"
ptr_cast_constness = "warn"
pub_underscore_fields = "warn"
pub_without_shorthand = "warn"
rc_mutex = "warn"
readonly_write_lock = "warn"
redundant_type_annotations = "warn"
ref_as_ptr = "warn"
ref_option_ref = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_and_then = "warn"
same_functions_in_if_condition = "warn"
self_only_used_in_recursion = "warn"
semicolon_if_nothing_returned = "warn"
set_contains_or_insert = "warn"
should_panic_without_expect = "warn"
single_char_pattern = "warn"
single_match_else = "warn"
single_option_map = "warn"
str_split_at_newline = "warn"
str_to_string = "warn"
string_add = "warn"
string_add_assign = "warn"
string_lit_as_bytes = "warn"
string_lit_chars_any = "warn"
suspicious_command_arg_space = "warn"
suspicious_xor_used_as_pow = "warn"
todo = "warn"
too_long_first_doc_paragraph = "warn"
too_many_lines = "warn"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
transmute_ptr_to_ptr = "warn"
tuple_array_conversions = "warn"
unchecked_time_subtraction = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
uninhabited_references = "warn"
uninlined_format_args = "warn"
unnecessary_box_returns = "warn"
unnecessary_literal_bound = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unnecessary_semicolon = "warn"
unnecessary_struct_initialization = "warn"
unnecessary_wraps = "warn"
unnested_or_patterns = "warn"
unused_async = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
unused_self = "warn"
unused_trait_names = "warn"
unwrap_used = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
useless_transmute = "warn"
verbose_file_reads = "warn"
wildcard_dependencies = "warn"
wildcard_imports = "warn"
zero_sized_map_values = "warn"
# Disabled waiting on https://github.com/rust-lang/rust-clippy/issues/9602
#self_named_module_files = "warn"
manual_range_contains = "allow" # this one is just worse imho
map_unwrap_or = "allow" # so is this one
ref_patterns = "allow" # It's nice to avoid ref pattern, but there are some situations that are hard (impossible?) to express without.
# TODO(emilk): enable more of these lints:
cast_possible_truncation = "allow" # Moo much noise, sadly
clone_on_ref_ptr = "allow" # Might be too much with this enabled
iter_over_hash_type = "allow"
let_underscore_untyped = "allow"
missing_assert_message = "allow"
missing_errors_doc = "allow"
ref_option = "allow"
significant_drop_tightening = "allow" # An update of parking_lot made this trigger in a lot of places. TODO(emilk): fix those places
unnecessary_debug_formatting = "allow"
[patch.crates-io]
# https://github.com/rerun-io/arrow-datafusion/pull/1 - workaround for https://github.com/rerun-io/rerun/issues/9440 :
# datafusion = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-catalog = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-catalog-listing = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-common = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-common-runtime = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-datasource = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-doc = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-execution = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-expr = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-expr-common = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-functions = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-ffi = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-functions-aggregate = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-functions-aggregate-common = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-functions-nested = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-functions-table = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-functions-window = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-functions-window-common = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-macros = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-optimizer = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-physical-expr = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-physical-expr-common = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-physical-optimizer = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-physical-plan = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# datafusion-sql = { git = "https://github.com/rerun-io/arrow-datafusion.git", branch = "emilk/patch-duration" }
# Try to avoid patching crates! It prevents us from publishing the crates on crates.io.
# If you do patch always prefer to patch to the trunk branch of the upstream repo (i.e. `main`, `master`, …).
# If that is not possible, patch to a branch that has a PR open on the upstream repo.
# As a last resort, patch to a branch on our own repository.
#
# Prefer patching with `branch` over `rev` and let `Cargo.lock` handle the commit hash.
# That makes it easy to upade with `cargo update -p $CRATE`.
# ecolor = { git = "https://github.com/emilk/egui.git", branch = "main" }
# eframe = { git = "https://github.com/emilk/egui.git", branch = "main" }
# egui = { git = "https://github.com/emilk/egui.git", branch = "main" }
# egui_extras = { git = "https://github.com/emilk/egui.git", branch = "main" }
# egui_kittest = { git = "https://github.com/emilk/egui.git", branch = "main" }
# egui-wgpu = { git = "https://github.com/emilk/egui.git", branch = "main" }
# emath = { git = "https://github.com/emilk/egui.git", branch = "main" }
# Useful while developing:
# ecolor = { path = "../../egui/crates/ecolor" }
# eframe = { path = "../../egui/crates/eframe" }
# egui = { path = "../../egui/crates/egui" }
# egui_extras = { path = "../../egui/crates/egui_extras" }
# egui_kittest = { path = "../../egui/crates/egui_kittest" }
# egui-wgpu = { path = "../../egui/crates/egui-wgpu" }
# emath = { path = "../../egui/crates/emath" }
# wgpu = { path = "../../wgpu/wgpu" }
#egui_plot = { git = "https://github.com/emilk/egui_plot.git", branch = "legend-id-keying" }
#egui_plot = { path = "../../../egui_plot/egui_plot" }
# egui_tiles = { git = "https://github.com/rerun-io/egui_tiles", branch = "emilk/update-egui" }
# egui_tiles = { path = "../egui_tiles" }
# egui_table = { git = "https://github.com/rerun-io/egui_table", branch = "main" }
# egui_table = { path = "../egui_table" }
# egui_dnd = { git = "https://github.com/rerun-io/hello_egui.git", branch = "emilk/egui-0.33.0" }
# egui_commonmark = { git = "https://github.com/rerun-io/egui_commonmark.git", branch = "lucas/update-egui-main" }
# egui_commonmark = { path = "../../forks/egui_commonmark/egui_commonmark" }
# walkers = { git = "https://github.com/rerun-io/walkers", branch = "emilk/rust-1.90" } # https://github.com/podusowski/walkers/pull/394
# dav1d = { path = "/home/cmc/dev/rerun-io/rav1d", package = "re_rav1d", version = "0.1.1" }