forked from rerun-io/rerun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
69 lines (57 loc) · 2.31 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
[package]
name = "rerun_py" # name of the rust crate
edition.workspace = true
license.workspace = true
publish = false
rust-version.workspace = true
version.workspace = true
[lib]
crate-type = ["cdylib"]
name = "rerun_bindings" # name of the .so library that the Python module will import
[features]
default = ["extension-module", "native_viewer"]
## The features we turn on when building the `rerun-sdk` PyPi package
## for <https://pypi.org/project/rerun-sdk/>.
pypi = ["extension-module", "native_viewer", "web_viewer"]
## We need to enable the `pyo3/extension-module` when building the SDK,
## but we cannot enable it when building tests and benchmarks, so we
## must make it an opt-in feature.
## * <https://pyo3.rs/latest/faq.html#i-cant-run-cargo-test-or-i-cant-build-in-a-cargo-workspace-im-having-linker-issues-like-symbol-not-found-or-undefined-reference-to-_pyexc_systemerror>
## * <https://pyo3.rs/latest/building_and_distribution.html#building-python-extension-modules>
extension-module = ["pyo3/extension-module"]
## Support spawning a native Rerun viewer with `spawn()`.
native_viewer = ["rerun/native_viewer"]
## Support serving a web viewer over HTTP with `serve()`.
##
## Enabling this adds quite a bit to the compile time and binary size,
## since it requires compiling and bundling the viewer as wasm.
web_viewer = ["rerun/web_viewer", "dep:re_web_viewer_server", "dep:re_ws_comms"]
[dependencies]
re_build_info.workspace = true
re_error.workspace = true
re_log.workspace = true
re_log_types.workspace = true
re_memory.workspace = true
rerun = { workspace = true, features = [
"analytics",
"data_loaders",
"run",
"server",
"sdk",
] }
re_web_viewer_server = { workspace = true, optional = true }
re_ws_comms = { workspace = true, optional = true }
arrow2 = { workspace = true, features = ["io_ipc", "io_print"] }
crossbeam.workspace = true
document-features.workspace = true
itertools = { workspace = true }
mimalloc = { workspace = true, features = ["local_dynamic_tls"] }
once_cell.workspace = true
parking_lot.workspace = true
pyo3 = { workspace = true, features = ["abi3-py38"] }
rand = { workspace = true, features = ["std_rng"] }
tokio = { workspace = true, features = ["rt-multi-thread", "signal"] }
uuid.workspace = true
[build-dependencies]
re_build_tools.workspace = true
pyo3-build-config.workspace = true