Skip to content

Commit

Permalink
Move data_source into own crate
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Aug 28, 2023
1 parent 49e6b25 commit 7c77d75
Show file tree
Hide file tree
Showing 8 changed files with 407 additions and 301 deletions.
18 changes: 18 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ re_build_tools = { path = "crates/re_build_tools", version = "=0.9.0-alpha.2", d
re_build_web_viewer = { path = "crates/re_build_web_viewer", version = "=0.9.0-alpha.2", default-features = false }
re_components = { path = "crates/re_components", version = "=0.9.0-alpha.2", default-features = false }
re_crash_handler = { path = "crates/re_crash_handler", version = "=0.9.0-alpha.2", default-features = false }
re_data_source = { path = "crates/re_data_source", version = "=0.9.0-alpha.2", default-features = false }
re_data_store = { path = "crates/re_data_store", version = "=0.9.0-alpha.2", default-features = false }
re_data_ui = { path = "crates/re_data_ui", version = "=0.9.0-alpha.2", default-features = false }
re_error = { path = "crates/re_error", version = "=0.9.0-alpha.2", default-features = false }
Expand Down
42 changes: 42 additions & 0 deletions crates/re_data_source/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[package]
name = "re_data_source"
authors.workspace = true
description = "Handles loading of Rerun data"
edition.workspace = true
homepage.workspace = true
include.workspace = true
license.workspace = true
publish = true
readme = "README.md"
repository.workspace = true
rust-version.workspace = true
version.workspace = true

[package.metadata.docs.rs]
all-features = true


[features]
default = []

sdk = ["dep:re_sdk"]


[dependencies]
re_log_encoding.workspace = true
re_log_types.workspace = true
re_log.workspace = true
re_smart_channel.workspace = true
re_tracing.workspace = true
re_ws_comms.workspace = true

anyhow.workspace = true
itertools.workspace = true
rayon.workspace = true

# Optional:
re_sdk = { workspace = true, optional = true }


[build-dependencies]
re_build_tools.workspace = true
18 changes: 18 additions & 0 deletions crates/re_data_source/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# re_data_source

Part of the [`rerun`](https://github.com/rerun-io/rerun) family of crates.

[![Latest version](https://img.shields.io/crates/v/re_data_source.svg)](https://crates.io/crates/re_data_source)
[![Documentation](https://docs.rs/re_data_source/badge.svg)](https://docs.rs/re_data_source)
![MIT](https://img.shields.io/badge/license-MIT-blue.svg)
![Apache](https://img.shields.io/badge/license-Apache-blue.svg)

Handles different ways of loading Rerun data, e.g.:
* Over HTTP(s)
* Over WebSocket
* From disk

Also handles different file types:
* .rrd
* images
* meshes
4 changes: 4 additions & 0 deletions crates/re_data_source/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
re_build_tools::rebuild_if_crate_changed("re_data_source");
re_build_tools::export_env_vars();
}
Loading

0 comments on commit 7c77d75

Please sign in to comment.