repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/bar_chart.rs | docs/snippets/all/archetypes/bar_chart.rs | //! Create and log a bar chart
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_bar_chart").spawn()?;
rec.log(
"bar_chart",
&rerun::BarChart::new([8_i64, 4, 0, 9, 1, 4, 1, 6, 9, 0].as_slice()),
)?;
rec.log(
"bar_c... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/pinhole_perspective.rs | docs/snippets/all/archetypes/pinhole_perspective.rs | //! Logs a point cloud and a perspective camera looking at it.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_pinhole_perspective").spawn()?;
let fov_y = std::f32::consts::FRAC_PI_4;
let aspect_ratio = 1.7777778;
rec.log(
"worl... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/arrows2d_simple.rs | docs/snippets/all/archetypes/arrows2d_simple.rs | //! Log a batch of 2D arrows.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_arrow2d").spawn()?;
rec.log(
"arrows",
&rerun::Arrows2D::from_vectors([[1.0, 0.0], [0.0, -1.0], [-0.7, 0.7]])
.with_radii([0.025])
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/points2d_simple.rs | docs/snippets/all/archetypes/points2d_simple.rs | //! Log some very simple points.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_points2d").spawn()?;
rec.log("points", &rerun::Points2D::new([(0.0, 0.0), (1.0, 1.0)]))?;
// TODO(#5521): log VisualBounds2D
Ok(())
}
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/image_formats.rs | docs/snippets/all/archetypes/image_formats.rs | use rerun::external::ndarray;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_image_formats").spawn()?;
// Simple gradient image
let image = ndarray::Array3::from_shape_fn((256, 256, 3), |(y, x, c)| match c {
0 => x as u8,
1... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/geo_points_simple.rs | docs/snippets/all/archetypes/geo_points_simple.rs | //! Log some very simple geospatial point.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_geo_points").spawn()?;
rec.log(
"rerun_hq",
&rerun::GeoPoints::from_lat_lon([(59.319221, 18.075631)])
.with_radii([rerun::Rad... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/image_simple.rs | docs/snippets/all/archetypes/image_simple.rs | //! Create and log an image
use ndarray::{Array, ShapeBuilder as _, s};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_image").spawn()?;
let mut image = Array::<u8, _>::zeros((200, 300, 3).f());
image.slice_mut(s![.., .., 0]).fill(255);
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/mcap_channel_simple.rs | docs/snippets/all/archetypes/mcap_channel_simple.rs | //! Log a simple MCAP channel definition.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_mcap_channel").spawn()?;
rec.log(
"mcap/channels/camera",
&rerun::McapChannel::new(1, "/camera/image", "cdr")
.with_metadata([... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/annotation_context_rects.rs | docs/snippets/all/archetypes/annotation_context_rects.rs | //! Log rectangles with different colors and labels using annotation context
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example_annotation_context_rects").spawn()?;
// Log an annotation context to assign a label and color to each class
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/pinhole_simple.rs | docs/snippets/all/archetypes/pinhole_simple.rs | //! Log a pinhole and a random image.
use ndarray::{Array, ShapeBuilder as _};
use rand::prelude::*;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_pinhole").spawn()?;
let mut image = Array::<u8, _>::default((3, 3, 3).f());
let mut rng = ... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/transform3d_column_updates.rs | docs/snippets/all/archetypes/transform3d_column_updates.rs | //! Update a transform over time, in a single operation.
//!
//! This is semantically equivalent to the `transform3d_row_updates` example, albeit much faster.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example_transform3d_column_updates").spawn... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/entity_path.rs | docs/snippets/all/archetypes/entity_path.rs | //! Example of different ways of constructing an entity path.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_entity_path").spawn()?;
rec.log(
r"world/42/escaped\ string\!",
&rerun::TextDocument::new("This entity path was escape... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/ellipsoids3d_batch.rs | docs/snippets/all/archetypes/ellipsoids3d_batch.rs | //! Log a batch of `Ellipsoids3D`.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_ellipsoid_batch").spawn()?;
// Let's build a snowman!
let belly_z = 2.5;
let head_z = 4.5;
rec.log(
"batch",
&rerun::Ellipsoids3D::fr... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/points3d_random.rs | docs/snippets/all/archetypes/points3d_random.rs | //! Log some random points with color and radii.
use rand::prelude::*;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_points3d_random").spawn()?;
let mut rng = rand::rngs::SmallRng::seed_from_u64(42);
let dist = rand::distr::Uniform::new(... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/transform3d_partial_updates.rs | docs/snippets/all/archetypes/transform3d_partial_updates.rs | //! Update specific properties of a transform over time.
use rerun::AsComponents;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example_transform3d_partial_updates").spawn()?;
// Set up a 3D box.
rec.log(
"box",
&[
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/tensor_simple.rs | docs/snippets/all/archetypes/tensor_simple.rs | //! Create and log a tensor.
use ndarray::{Array, ShapeBuilder as _};
use rand::prelude::*;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_tensor").spawn()?;
let mut data = Array::<u8, _>::default((8, 6, 3, 5).f());
let mut rng = rand::rn... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/video_auto_frames.rs | docs/snippets/all/archetypes/video_auto_frames.rs | //! Log a video asset using automatically determined frame references.
use rerun::external::anyhow;
fn main() -> anyhow::Result<()> {
let args = _args;
let Some(path) = args.get(1) else {
// TODO(#7354): Only mp4 is supported for now.
anyhow::bail!("Usage: {} <path_to_video.[mp4]>", args[0]);
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/clear_recursive.rs | docs/snippets/all/archetypes/clear_recursive.rs | //! Log and then clear data recursively.
use rerun::external::glam;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_clear_recursive").spawn()?;
#[rustfmt::skip]
let (vectors, origins, colors) = (
[glam::Vec3::X, glam::Vec3::NEG_... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/segmentation_image_simple.rs | docs/snippets/all/archetypes/segmentation_image_simple.rs | //! Create and log a segmentation image.
use ndarray::{Array, ShapeBuilder as _, s};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_segmentation_image").spawn()?;
// create a segmentation image
let mut image = Array::<u8, _>::zeros((8, 12... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/image_column_updates.rs | docs/snippets/all/archetypes/image_column_updates.rs | //! Update an image over time, in a single operation.
//!
//! This is semantically equivalent to the `image_row_updates` example, albeit much faster.
use ndarray::{Array, ShapeBuilder as _, s};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_image_... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/line_strips2d_batch.rs | docs/snippets/all/archetypes/line_strips2d_batch.rs | //! Log a batch of 2D line strips.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_line_strip2d_batch").spawn()?;
let strip1 = [[0., 0.], [2., 1.], [4., -1.], [6., 0.]];
#[rustfmt::skip]
let strip2 = [[0., 3.], [1., 4.], [2., 2.], [3., ... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/graph_undirected.rs | docs/snippets/all/archetypes/graph_undirected.rs | //! Log a simple undirected graph.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_graph_undirected").spawn()?;
rec.log(
"simple",
&[
&rerun::GraphNodes::new(["a", "b", "c"])
.with_positions([(0.0, 10... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/capsules3d_batch.rs | docs/snippets/all/archetypes/capsules3d_batch.rs | //! Log a batch of capsules.
use rerun::external::glam::vec3;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_capsule3d_batch").spawn()?;
rec.log(
"capsules",
&rerun::Capsules3D::from_lengths_and_radii(
[0.0, 2.0, 4... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/geo_line_strings_simple.rs | docs/snippets/all/archetypes/geo_line_strings_simple.rs | //! Log a simple geospatial line string.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_geo_line_strings").spawn()?;
rec.log(
"colorado",
&rerun::GeoLineStrings::from_lat_lon([[
[41.0000, -109.0452],
[41... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/text_log.rs | docs/snippets/all/archetypes/text_log.rs | //! Log a `TextLog`
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_text_log").spawn()?;
rec.log(
"log",
&rerun::TextLog::new("Application started.").with_level("INFO"),
)?;
Ok(())
}
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/depth_image_simple.rs | docs/snippets/all/archetypes/depth_image_simple.rs | //! Create and log a depth image.
use ndarray::{Array, ShapeBuilder as _, s};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_depth_image_simple").spawn()?;
let mut image = Array::<u16, _>::from_elem((200, 300).f(), 65535);
image.slice_mut... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/mesh3d_instancing.rs | docs/snippets/all/archetypes/mesh3d_instancing.rs | //! Log a simple 3D mesh with several instance pose transforms which instantiate the mesh several times and will not affect its children (known as mesh instancing).
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_mesh3d_instancing").spawn()?;
r... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/mcap_message_simple.rs | docs/snippets/all/archetypes/mcap_message_simple.rs | //! Log a simple MCAP message with binary data.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_mcap_message").spawn()?;
// Example binary message data (could be from a ROS message, protobuf, etc.)
// This represents a simple sensor reading... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/line_strips3d_segments_simple.rs | docs/snippets/all/archetypes/line_strips3d_segments_simple.rs | //! Log a simple set of line segments.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_line_segments3d").spawn()?;
let points = [
[0., 0., 0.],
[0., 0., 1.],
[1., 0., 0.],
[1., 0., 1.],
[1., 1., 0.],
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/scalars_simple.rs | docs/snippets/all/archetypes/scalars_simple.rs | //! Log a scalar over time.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_scalar").spawn()?;
// Log the data on a timeline called "step".
for step in 0..64 {
rec.set_time_sequence("step", step);
rec.log(
"scala... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/scalars_row_updates.rs | docs/snippets/all/archetypes/scalars_row_updates.rs | //! Update a scalar over time.
//!
//! See also the `scalar_column_updates` example, which achieves the same thing in a single operation.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_scalar_row_updates").spawn()?;
for step in 0..64 {
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/line_strips3d_batch.rs | docs/snippets/all/archetypes/line_strips3d_batch.rs | //! Log a batch of 2D line strips.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_line_strip3d_batch").spawn()?;
let strip1 = [[0., 0., 2.], [1., 0., 2.], [1., 1., 2.], [0., 1., 2.]];
let strip2 = [
[0., 0., 0.],
[0., 0., 1... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/text_document.rs | docs/snippets/all/archetypes/text_document.rs | //! Log a `TextDocument`
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_text_document").spawn()?;
rec.log(
"text_document",
&rerun::TextDocument::new("Hello, TextDocument!"),
)?;
rec.log(
"markdown",
&r... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/points3d_ui_radius.rs | docs/snippets/all/archetypes/points3d_ui_radius.rs | //! Log some points with ui points & scene unit radii.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_points3d_ui_radius").spawn()?;
// Two blue points with scene unit radii of 0.1 and 0.3.
rec.log(
"scene_units",
&rerun::P... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/points3d_simple.rs | docs/snippets/all/archetypes/points3d_simple.rs | //! Log some very simple points.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_points3d").spawn()?;
rec.log(
"points",
&rerun::Points3D::new([(0.0, 0.0, 0.0), (1.0, 1.0, 1.0)]),
)?;
Ok(())
}
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/boxes3d_batch.rs | docs/snippets/all/archetypes/boxes3d_batch.rs | //! Log a batch of oriented bounding boxes.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_box3d_batch").spawn()?;
rec.log(
"batch",
&rerun::Boxes3D::from_centers_and_half_sizes(
[(2.0, 0.0, 0.0), (-2.0, 0.0, 0.0), ... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/view_coordinates_simple.rs | docs/snippets/all/archetypes/view_coordinates_simple.rs | //! Change the view coordinates for the scene.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_view_coordinates").spawn()?;
rec.log_static("world", &rerun::ViewCoordinates::RIGHT_HAND_Z_UP())?; // Set an up-axis
rec.log(
"world/xyz"... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/arrows3d_column_updates.rs | docs/snippets/all/archetypes/arrows3d_column_updates.rs | //! Update a set of vectors over time, in a single operation.
//!
//! This is semantically equivalent to the `arrows3d_row_updates` example, albeit much faster.
use rerun::demo_util::linspace;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/points3d_column_updates.rs | docs/snippets/all/archetypes/points3d_column_updates.rs | //! Update a point cloud over time, in a single operation.
//!
//! This is semantically equivalent to the `points3d_row_updates` example, albeit much faster.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example_points3d_column_updates").spawn()?;... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/line_strips3d_simple.rs | docs/snippets/all/archetypes/line_strips3d_simple.rs | //! Log a simple line strip.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_line_strip3d").spawn()?;
let points = [
[0., 0., 0.],
[0., 0., 1.],
[1., 0., 0.],
[1., 0., 1.],
[1., 1., 0.],
[1., 1., ... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/depth_image_3d.rs | docs/snippets/all/archetypes/depth_image_3d.rs | //! Create and log a depth image.
use ndarray::{Array, ShapeBuilder as _, s};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_depth_image_3d").spawn()?;
let width = 300;
let height = 200;
let mut image = Array::<u16, _>::from_elem((heig... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/asset3d_simple.rs | docs/snippets/all/archetypes/asset3d_simple.rs | //! Log a simple 3D asset.
use rerun::external::anyhow;
fn main() -> anyhow::Result<()> {
let args = std::env::args().collect::<Vec<_>>();
let Some(path) = args.get(1) else {
anyhow::bail!("Usage: {} <path_to_asset.[gltf|glb|obj|stl]>", args[0]);
};
let rec = rerun::RecordingStreamBuilder::ne... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/points3d_row_updates.rs | docs/snippets/all/archetypes/points3d_row_updates.rs | //! Update a point cloud over time.
//!
//! See also the `points3d_column_updates` example, which achieves the same thing in a single operation.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_points3d_row_updates").spawn()?;
// Prepare a point... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/series_lines_style.rs | docs/snippets/all/archetypes/series_lines_style.rs | //! Log a scalar over time.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_series_line_style").spawn()?;
// Set up plot styling:
// They are logged static as they don't change over time and apply to all timelines.
// Log two lines seri... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/line_strips2d_ui_radius.rs | docs/snippets/all/archetypes/line_strips2d_ui_radius.rs | //! Log lines with ui points & scene unit radii.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_line_strip2d_ui_radius").spawn()?;
// A blue line with a scene unit radii of 0.01.
let points = [[0., 0.], [0., 1.], [1., 0.], [1., 1.]];
r... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/transform3d_hierarchy_frames.rs | docs/snippets/all/archetypes/transform3d_hierarchy_frames.rs | //! Logs a transform hierarchy using named transform frame relationships.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example_transform3d_hierarchy_frames").spawn()?;
rec.set_duration_secs("sim_time", 0.0);
// Planetary motion is typic... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/transform3d_simple.rs | docs/snippets/all/archetypes/transform3d_simple.rs | //! Log different transforms between three arrows.
use std::f32::consts::TAU;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_transform3d").spawn()?;
let arrow = rerun::Arrows3D::from_vectors([(0.0, 1.0, 0.0)]).with_origins([(0.0, 0.0, 0.0)]);... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/mcap_statistics_simple.rs | docs/snippets/all/archetypes/mcap_statistics_simple.rs | //! Log simple MCAP recording statistics.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_mcap_statistics").spawn()?;
rec.log(
"mcap/statistics/recording_overview",
&rerun::McapStatistics::update_fields()
.with_messa... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/transform3d_row_updates.rs | docs/snippets/all/archetypes/transform3d_row_updates.rs | //! Update a transform over time.
//!
//! See also the `transform3d_column_updates` example, which achieves the same thing in a single operation.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example_transform3d_row_updates").spawn()?;
rec.se... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/image_row_updates.rs | docs/snippets/all/archetypes/image_row_updates.rs | //! Update an image over time.
//!
//! See also the `image_column_updates` example, which achieves the same thing in a single operation.
use ndarray::{Array, ShapeBuilder as _, s};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_image_row_updates")... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/arrows3d_simple.rs | docs/snippets/all/archetypes/arrows3d_simple.rs | //! Log a batch of 3D arrows.
use std::f32::consts::TAU;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_arrow3d").spawn()?;
let origins = vec![rerun::Position3D::ZERO; 100];
let (vectors, colors): (Vec<_>, Vec<_>) = (0..100)
.map(... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/line_strips2d_simple.rs | docs/snippets/all/archetypes/line_strips2d_simple.rs | //! Log a simple line strip.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_line_strip2d").spawn()?;
let points = [[0., 0.], [2., 1.], [4., -1.], [6., 0.]];
rec.log("strip", &rerun::LineStrips2D::new([points]))?;
// TODO(#5521): log V... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/instance_poses3d_combined.rs | docs/snippets/all/archetypes/instance_poses3d_combined.rs | //! Log a simple 3D box with a regular & instance pose transform.
use rerun::{
demo_util::grid,
external::{anyhow, glam},
};
fn main() -> anyhow::Result<()> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example_instance_pose3d_combined").spawn()?;
rec.set_time_sequence("frame", 0);
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/points2d_ui_radius.rs | docs/snippets/all/archetypes/points2d_ui_radius.rs | //! Log some points with ui points & scene unit radii.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_points2d_ui_radius").spawn()?;
// Two blue points with scene unit radii of 0.1 and 0.3.
rec.log(
"scene_units",
&rerun::P... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/encoded_image.rs | docs/snippets/all/archetypes/encoded_image.rs | //! Log a PNG image
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_encoded_image").spawn()?;
let image = include_bytes!("ferris.png");
rec.log(
"image",
&rerun::EncodedImage::from_file_contents(image.to_vec()),
)?;
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/line_strips2d_segments_simple.rs | docs/snippets/all/archetypes/line_strips2d_segments_simple.rs | //! Log a couple 2D line segments using 2D line strips.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_line_segments2d").spawn()?;
let points = [[0., 0.], [2., 1.], [4., -1.], [6., 0.]];
rec.log("segments", &rerun::LineStrips2D::new(points... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/encoded_depth_image.rs | docs/snippets/all/archetypes/encoded_depth_image.rs | //! Log an encoded depth image stored as a 16-bit PNG or RVL file
use rerun::external::anyhow;
fn main() -> anyhow::Result<()> {
let args = _args;
let Some(path) = args.get(1) else {
anyhow::bail!("Usage: {} <path_to_depth_image.[png|rvl]>", args[0]);
};
let rec = rerun::RecordingStreamBuilde... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/boxes3d_simple.rs | docs/snippets/all/archetypes/boxes3d_simple.rs | //! Log a single 3D box.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_box3d").spawn()?;
rec.log(
"simple",
&rerun::Boxes3D::from_half_sizes([(2.0, 2.0, 1.0)]),
)?;
Ok(())
}
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/mesh3d_partial_updates.rs | docs/snippets/all/archetypes/mesh3d_partial_updates.rs | //! Log a simple colored triangle, then update its vertices' positions each frame.
use rerun::external::glam;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_mesh3d_partial_updates").spawn()?;
let vertex_positions = [[-1.0, 0.0, 0.0], [1.0, 0.... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/scalars_column_updates.rs | docs/snippets/all/archetypes/scalars_column_updates.rs | //! Update a scalar over time, in a single operation.
//!
//! This is semantically equivalent to the `scalar_row_updates` example, albeit much faster.
use rerun::TimeColumn;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_scalar_column_updates").sp... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/boxes2d_simple.rs | docs/snippets/all/archetypes/boxes2d_simple.rs | //! Log some very simple 2D boxes.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_box2d").spawn()?;
rec.log(
"simple",
&rerun::Boxes2D::from_mins_and_sizes([(-1., -1.)], [(2., 2.)]),
)?;
Ok(())
}
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/archetypes/points3d_partial_updates.rs | docs/snippets/all/archetypes/points3d_partial_updates.rs | //! Update specific properties of a point cloud over time.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example_points3d_partial_updates").spawn()?;
let positions = || (0..10).map(|i| (i as f32, 0.0, 0.0));
rec.set_time_sequence("frame"... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/tutorials/any_values.rs | docs/snippets/all/tutorials/any_values.rs | //! Log arbitrary data.
use std::sync::Arc;
use rerun::external::arrow;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_any_values").spawn()?;
let any_values = rerun::AnyValues::default()
// Using arbitrary Arrow data.
.with_c... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/tutorials/extra_values.rs | docs/snippets/all/tutorials/extra_values.rs | //! Log extra values with a `Points2D`.
use std::sync::Arc;
use rerun::external::arrow;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_extra_values").spawn()?;
let points = rerun::Points2D::new([(-1.0, -1.0), (-1.0, 1.0), (1.0, -1.0), (1.0, ... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/tutorials/log-file.rs | docs/snippets/all/tutorials/log-file.rs | let args = std::env::args().collect::<Vec<_>>();
let rec = rerun::RecordingStreamBuilder::new("rerun_example_log_file").spawn()?;
rec.log_file_from_path(&args[1], None /* prefix */, true /* static */)?;
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/tutorials/default-off-session.rs | docs/snippets/all/tutorials/default-off-session.rs | let recording = rerun::RecordingStreamBuilder::new("rerun_example_pouet").default_enabled(false);
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/tutorials/timelines_example.rs | docs/snippets/all/tutorials/timelines_example.rs | for frame in read_sensor_frames() {
rec.set_time_sequence("frame_idx", frame.idx);
rec.set_timestamp_secs_since_epoch("sensor_time", frame.timestamp);
rec.log("sensor/points", rerun::Points3D::new(&frame.points))?;
}
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/tutorials/dynamic_archetype.rs | docs/snippets/all/tutorials/dynamic_archetype.rs | //! Log arbitrary archetype data.
use std::sync::Arc;
use rerun::external::arrow;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_dynamic_archetype").spawn()?;
let new_archetype = rerun::DynamicArchetype::new("MyArchetype")
// Using a... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/tutorials/annotation_context.rs | docs/snippets/all/tutorials/annotation_context.rs | use rerun::{
AnnotationContext, AnnotationInfo, ClassDescription, Rgba32,
datatypes::{ClassDescriptionMapElem, KeypointId},
};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_annotation_context_connections")
.spawn()?;
// Annota... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/tutorials/custom-application-id.rs | docs/snippets/all/tutorials/custom-application-id.rs | rerun::RecordingStreamBuilder::new("rerun_example_shared_recording")
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/tutorials/custom-recording-id.rs | docs/snippets/all/tutorials/custom-recording-id.rs | rerun::RecordingStreamBuilder::new("rerun_example_shared_recording")
.recording_id("my_shared_recording")
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/tutorials/custom_data.rs | docs/snippets/all/tutorials/custom_data.rs | //! Demonstrates how to implement custom archetypes and components, and extend existing ones.
use rerun::{
ComponentBatch as _, ComponentDescriptor, SerializedComponentBatch,
demo_util::grid,
external::{arrow, glam, re_sdk_types},
};
// ---
/// A custom [component bundle] that extends Rerun's builtin [`r... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/descriptors/descr_custom_archetype.rs | docs/snippets/all/descriptors/descr_custom_archetype.rs | use rerun::{ChunkStore, ChunkStoreConfig, ComponentBatch as _, ComponentDescriptor};
struct CustomPoints3D {
positions: Vec<rerun::components::Position3D>,
colors: Option<Vec<rerun::components::Color>>,
}
impl CustomPoints3D {
fn overridden_position_descriptor() -> ComponentDescriptor {
ComponentD... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/descriptors/descr_custom_component.rs | docs/snippets/all/descriptors/descr_custom_component.rs | use rerun::{ChunkStore, ChunkStoreConfig, ComponentBatch as _, ComponentDescriptor};
fn example(rec: &rerun::RecordingStream) -> Result<(), Box<dyn std::error::Error>> {
let positions =
rerun::components::Position3D::new(1.0, 2.0, 3.0).try_serialized(ComponentDescriptor {
archetype: Some("user.... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/descriptors/descr_builtin_component.rs | docs/snippets/all/descriptors/descr_builtin_component.rs | use rerun::{ChunkStore, ChunkStoreConfig, ComponentDescriptor};
fn example(rec: &rerun::RecordingStream) -> Result<(), Box<dyn std::error::Error>> {
use rerun::ComponentBatch as _;
rec.log_static(
"data",
&[
rerun::components::Position3D::new(1.0, 2.0, 3.0).try_serialized(
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/descriptors/descr_builtin_archetype.rs | docs/snippets/all/descriptors/descr_builtin_archetype.rs | use rerun::{ChunkStore, ChunkStoreConfig, ComponentDescriptor};
fn example(rec: &rerun::RecordingStream) -> Result<(), Box<dyn std::error::Error>> {
rec.log_static(
"data",
&rerun::Points3D::new([(1.0, 2.0, 3.0)]).with_radii([0.3, 0.2, 0.1]),
)?;
Ok(())
}
// ---
// Everything below this l... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/reference/dataframe_query.rs | docs/snippets/all/reference/dataframe_query.rs | //! Query and display the first 10 rows of a recording.
use rerun::{
ChunkStoreConfig,
dataframe::{QueryEngine, QueryExpression, SparseFillStrategy, TimelineName},
external::re_arrow_util::format_record_batch,
};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let args = std::env::args().collect... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/reference/dataframe_view_query_external.rs | docs/snippets/all/reference/dataframe_view_query_external.rs | //! Query and display the first 10 rows of a recording in a dataframe view.
//!
//! The blueprint is being loaded from an existing blueprint recording file.
// cargo r -p snippets -- dataframe_view_query_external /tmp/dna.rrd /tmp/dna.rbl
fn main() -> Result<(), Box<dyn std::error::Error>> {
let args = std::env::... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/migration/log_line.rs | docs/snippets/all/migration/log_line.rs | // 0.8
use rerun::{components::Point3D, MsgSender};
let positions = vec![Point3D::from([1.0, 2.0, 3.0])];
MsgSender::new("points")
.with_component(&positions)?
.send(&rec)?;
// 0.9
rec.log(
"points",
&rerun::Points3D::new([(1.0, 2.0, 3.0)]),
)?;
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/migration/transactional_transforms.rs | docs/snippets/all/migration/transactional_transforms.rs | // Log a translation transform.
rec.log(
"simple",
&rerun::Transform3D::from_translation([1.0, 2.0, 3.0]),
)?;
// Note that we explicitly only set the scale here:
// Previously, this would have meant that we keep the translation.
// However, in 0.27 the Viewer will no longer apply the previous translation rega... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/recording_properties.rs | docs/snippets/all/concepts/recording_properties.rs | //! Sets the recording properties.
use std::sync::Arc;
use rerun::external::arrow;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_recording_properties").spawn()?;
// Recordings can have an optional name.
rec.send_recording_name("My recor... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/send_recording.rs | docs/snippets/all/concepts/send_recording.rs | //! Send a `.rrd` to a new recording stream.
use rerun::external::re_chunk_store::{ChunkStore, ChunkStoreConfig};
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Get the filename from the command-line args.
let filename = std::env::args().nth(2).ok_or("Missing filename argument")?;
// Load the c... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/grpc_sink.rs | docs/snippets/all/concepts/grpc_sink.rs | //! Create and set a GRPC sink.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_grpc_sink").buffered()?;
// The default URL is `rerun+http://127.0.0.1:9876/proxy`
// This can be used to connect to a viewer on a different machine
rec.set... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/different_data_per_timeline.rs | docs/snippets/all/concepts/different_data_per_timeline.rs | //! Log different data on different timelines.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example_different_data_per_timeline").spawn()?;
rec.set_time_sequence("blue timeline", 0);
rec.set_duration_secs("red timeline", 0.0);
rec.lo... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/transform3d_hierarchy_named_frames.rs | docs/snippets/all/concepts/transform3d_hierarchy_named_frames.rs | //! Logs a simple transform hierarchy with named frames.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example_transform3d_hierarchy_named_frames")
.spawn()?;
// Define entities with explicit coordinate frames.
rec.log(
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/indices.rs | docs/snippets/all/concepts/indices.rs | //! Set different types of indices.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_different_indices").spawn()?;
rec.set_time_sequence("frame_nr", 42);
rec.set_duration_secs("elapsed", 12.0);
rec.set_timestamp_secs_since_epoch("time", ... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/file_sink.rs | docs/snippets/all/concepts/file_sink.rs | //! Create and set a file sink.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_file_sink").buffered()?;
rec.set_sink(Box::new(rerun::sink::FileSink::new("recording.rrd")?));
Ok(())
}
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/transform3d_hierarchy_simple.rs | docs/snippets/all/concepts/transform3d_hierarchy_simple.rs | //! Logs a simple transform hierarchy.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec =
rerun::RecordingStreamBuilder::new("rerun_example_transform3d_hierarchy_simple").spawn()?;
// Log entities at their hierarchy positions.
rec.log(
"sun",
&rerun::Ellipsoids3D::from... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/static/send_static.rs | docs/snippets/all/concepts/static/send_static.rs | rec.send_columns("skybox", std::iter::empty(), generate_skybox_mesh())?;
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/static/log_static.rs | docs/snippets/all/concepts/static/log_static.rs | rec.log_static("skybox", &generate_skybox_mesh())?;
| rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/app-model/native-sync.rs | docs/snippets/all/concepts/app-model/native-sync.rs | fn main() -> Result<(), Box<dyn std::error::Error>> {
// Connect to the Rerun gRPC server using the default address and
// port: localhost:9876
let rec = rerun::RecordingStreamBuilder::new("rerun_example_native_sync").connect_grpc()?;
// Log data as usual, thereby pushing it into the stream.
loop {... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/concepts/app-model/native-async.rs | docs/snippets/all/concepts/app-model/native-async.rs | fn main() -> Result<(), Box<dyn std::error::Error>> {
// Open a local file handle to stream the data into.
let rec = rerun::RecordingStreamBuilder::new("rerun_example_native_sync")
.save("/tmp/my_recording.rrd")?;
// Log data as usual, thereby writing it into the file.
loop {
rec.log("/... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/howto/serve_web_viewer.rs | docs/snippets/all/howto/serve_web_viewer.rs | //! Demonstrates how to log data to a gRPC server and connect the web viewer to it.
//!
//! You need to enable the `web_viewer` feature on the `rerun` crate to use this.
//! For the in-repository build, you can run this snippet using `cargo run -p snippets --features web_viewer -- serve_web_viewer`.
fn main() -> Resul... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/howto/load_mcap.rs | docs/snippets/all/howto/load_mcap.rs | //! Load an MCAP file using the Rust SDK.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let path_to_mcap = std::env::args().nth(2).ok_or("Missing MCAP file")?;
// Initialize the SDK and give our recording a unique name
let rec = rerun::RecordingStreamBuilder::new("rerun_example_load_mcap").spawn()... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/howto/set_sinks.rs | docs/snippets/all/howto/set_sinks.rs | //! Connect to the viewer and log some data.
use rerun::{demo_util::grid, external::glam};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_attach_sinks").set_sinks((
// Connect to a local viewer using the default URL.
rerun::sink::G... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/howto/micro_batching.rs | docs/snippets/all/howto/micro_batching.rs | //! Shows how to configure micro-batching directly from code.
//!
//! Check out <https://rerun.io/docs/reference/sdk/micro-batching> for more information.
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Equivalent to configuring the following environment:
// * RERUN_FLUSH_NUM_BYTES=<+inf>
// * RER... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/howto/any_values_row_updates.rs | docs/snippets/all/howto/any_values_row_updates.rs | //! Update custom user-defined values over time.
//!
//! See also the `any_values_column_updates` example, which achieves the same thing in a single operation.
use std::sync::Arc;
use rerun::external::arrow;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/howto/check_connection_status.rs | docs/snippets/all/howto/check_connection_status.rs | //! Continuously print the connection status of a pending gRPC connection.
//!
//! This feature is experimental and may change in future releases.
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_check_connection_status")
.connect_grpc()?;
... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/howto/any_batch_value_column_updates.rs | docs/snippets/all/howto/any_batch_value_column_updates.rs | //! Use `send_column` to send an entire column of custom data to Rerun.
#![expect(clippy::from_iter_instead_of_collect)]
use std::sync::Arc;
use rerun::{TimeColumn, external::arrow};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let rec = rerun::RecordingStreamBuilder::new("rerun_example_any_batch_value... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
rerun-io/rerun | https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/docs/snippets/all/howto/any_values_column_updates.rs | docs/snippets/all/howto/any_values_column_updates.rs | //! Update custom user-defined values over time, in a single operation.
//!
//! This is semantically equivalent to the `any_values_row_updates` example, albeit much faster.
#![expect(clippy::from_iter_instead_of_collect)]
use std::sync::Arc;
use rerun::{TimeColumn, external::arrow};
fn main() -> Result<(), Box<dyn ... | rust | Apache-2.0 | 910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0 | 2026-01-04T15:43:37.979050Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.