Skip to content

Commit

Permalink
Feature plumbing for rrdp
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Oct 25, 2024
1 parent 1d0a9a3 commit d3dd82f
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5292,6 +5292,7 @@ dependencies = [
"re_log",
"re_log_encoding",
"re_log_types",
"re_remote_store_types",
"re_smart_channel",
"re_tracing",
"re_ws_comms",
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ re_format_arrow = { path = "crates/store/re_format_arrow", version = "=0.20.0-al
re_log_encoding = { path = "crates/store/re_log_encoding", version = "=0.20.0-alpha.1", default-features = false }
re_log_types = { path = "crates/store/re_log_types", version = "=0.20.0-alpha.1", default-features = false }
re_query = { path = "crates/store/re_query", version = "=0.20.0-alpha.1", default-features = false }
re_remote_store_types = { path = "crates/build/re_remote_store_types", version = "=0.20.0-alpha.1", default-features = false }
re_remote_store_types = { path = "crates/store/re_remote_store_types", version = "=0.20.0-alpha.1", default-features = false }
re_sdk_comms = { path = "crates/store/re_sdk_comms", version = "=0.20.0-alpha.1", default-features = false }
re_types = { path = "crates/store/re_types", version = "=0.20.0-alpha.1", default-features = false }
re_types_blueprint = { path = "crates/store/re_types_blueprint", version = "=0.20.0-alpha.1", default-features = false }
Expand Down
6 changes: 6 additions & 0 deletions crates/store/re_data_source/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ all-features = true
[features]
default = []

## Enable the rrdp data source.
rrdp = ["dep:re_remote_store_types"]


[dependencies]
re_data_loader.workspace = true
Expand All @@ -39,5 +42,8 @@ anyhow.workspace = true
itertools.workspace = true
rayon.workspace = true

# Optional dependencies:
re_remote_store_types = { workspace = true, optional = true }

[build-dependencies]
re_build_tools.workspace = true
4 changes: 4 additions & 0 deletions crates/store/re_data_source/src/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ pub enum DataSource {
// RRD data streaming in from standard input.
#[cfg(not(target_arch = "wasm32"))]
Stdin,

/// A remote file, served over RRDP interface.
#[cfg(feature = "rrdp")]
RrdpUrl { url: String },
}

impl DataSource {
Expand Down
3 changes: 3 additions & 0 deletions crates/top/rerun-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ nasm = ["rerun/nasm"]
## This adds a lot of extra dependencies, so only enable this feature if you need it!
native_viewer = ["rerun/native_viewer"]

## Enable the rrdp data source.
rrdp = ["rerun/rrdp"]

## Support serving a web viewer over HTTP.
##
## Enabling this inflates the binary size quite a bit, since it embeds the viewer wasm.
Expand Down
3 changes: 3 additions & 0 deletions crates/top/rerun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ nasm = ["re_video/nasm"]
## This adds a lot of extra dependencies, so only enable this feature if you need it!
native_viewer = ["dep:re_viewer"]

## Enable the rrdp data source.
rrdp = ["re_viewer/rrdp"]

## Add support for the [`run()`] function, which acts like a main-function for a CLI,
## acting the same as [the `rerun` binary](https://crates.io/crates/rerun-cli).
run = [
Expand Down
3 changes: 3 additions & 0 deletions crates/viewer/re_viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ default = ["analytics"]
## Enable telemetry using our analytics SDK.
analytics = ["dep:re_analytics"]

## Enable the rrdp data source.
rrdp = ["re_data_source/rrdp"]


[dependencies]
# Internal:
Expand Down

0 comments on commit d3dd82f

Please sign in to comment.