Back to Rerun

External data-loader example

examples/rust/external_data_loader/README.md

0.31.41.3 KB
Original Source
<picture> <source media="(max-width: 480px)" srcset="https://static.rerun.io/external_data_loader_rs/74eecea3b16fee7fab01045e3bfdd90ba6c59bc9/480w.png"> <source media="(max-width: 768px)" srcset="https://static.rerun.io/external_data_loader_rs/74eecea3b16fee7fab01045e3bfdd90ba6c59bc9/768w.png"> <source media="(max-width: 1024px)" srcset="https://static.rerun.io/external_data_loader_rs/74eecea3b16fee7fab01045e3bfdd90ba6c59bc9/1024w.png"> <source media="(max-width: 1200px)" srcset="https://static.rerun.io/external_data_loader_rs/74eecea3b16fee7fab01045e3bfdd90ba6c59bc9/1200w.png"> </picture>

This is an example executable data-loader plugin for the Rerun Viewer.

It will log Rust source code files as markdown documents. To try it out, install it in your $PATH (cargo install --path . -f), then open a Rust source file with Rerun (rerun file.rs).

Consider using the send_columns API for data loaders that ingest time series data from a file. This can be much more efficient that the stateful log API as it allows bundling component data over time into a single call consuming a continuous block of memory.