//! Log arbitrary data. use std::sync::Arc; use rerun::external::arrow; fn main() -> Result<(), Box> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_any_values") .spawn()?; let any_values = rerun::AnyValues::default() // Using arbitrary Arrow data. .with_component_from_data( "homepage", Arc::new(arrow::array::StringArray::from(vec![ "https://www.rerun.io", ])), ) .with_component_from_data( "repository", Arc::new(arrow::array::StringArray::from(vec![ "https://github.com/rerun-io/rerun", ])), ) // Using Rerun's builtin components. .with_component::( "confidence", [1.2, 3.4, 5.6], ) .with_component::( "description", vec!["Bla bla bla…"], ); rec.log("any_values", &any_values)?; Ok(()) }