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/crates/utils/re_video/src/decode/ffmpeg_cli/mod.rs
crates/utils/re_video/src/decode/ffmpeg_cli/mod.rs
mod ffmpeg; mod version; pub use ffmpeg::{Error, FFmpegCliDecoder}; pub use version::{ FFMPEG_MINIMUM_VERSION_MAJOR, FFMPEG_MINIMUM_VERSION_MINOR, FFmpegVersion, FFmpegVersionParseError, }; /// Download URL for the latest version of `FFmpeg` on the current platform. /// None if the platform is not supported. ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/utils/re_video/src/decode/ffmpeg_cli/ffmpeg.rs
crates/utils/re_video/src/decode/ffmpeg_cli/ffmpeg.rs
//! Send video data to `ffmpeg` over CLI to decode it. use std::collections::BTreeMap; use std::process::ChildStdin; use std::sync::Arc; use std::sync::atomic::{AtomicBool, AtomicI32, Ordering}; use crossbeam::channel::{Receiver, SendError, Sender}; use ffmpeg_sidecar::child::FfmpegChild; use ffmpeg_sidecar::command:...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
true
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/utils/re_video/src/demux/mod.rs
crates/utils/re_video/src/demux/mod.rs
//! Video demultiplexing. //! //! Parses a video file into a raw [`VideoDataDescription`] struct, which contains basic metadata and a list of [`GroupOfPictures`]s. //! //! The entry point is [`VideoDataDescription::load_from_bytes`] //! which produces an instance of [`VideoDataDescription`] from any supported video con...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
true
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/utils/re_video/src/demux/mp4.rs
crates/utils/re_video/src/demux/mp4.rs
use std::io::Cursor; use cros_codecs::codec::h265::parser::{ Nalu as H265Nalu, NaluType as H265NaluType, Parser as H265Parser, }; use h264_reader::nal::{self, Nal as _}; use itertools::Itertools as _; use re_span::Span; use saturating_cast::SaturatingCast as _; use super::{GroupOfPictures, SampleMetadata, VideoDa...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/utils/re_video/benches/video_load_bench.rs
crates/utils/re_video/benches/video_load_bench.rs
#![expect(clippy::unwrap_used)] // acceptable in benchmarks use std::path::Path; use criterion::{Criterion, criterion_group, criterion_main}; fn video_load(c: &mut Criterion) { let video_path = Path::new(env!("CARGO_MANIFEST_DIR")) .ancestors() .nth(3) .unwrap() .join("tests/asset...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/utils/re_video/examples/frames.rs
crates/utils/re_video/examples/frames.rs
//! Decodes an mp4 to a folder of images. #![expect(clippy::unwrap_used)] use std::fs::{File, OpenOptions}; use std::io::Write as _; use std::path::{Path, PathBuf}; use std::sync::Arc; use std::time::{Duration, Instant}; use indicatif::ProgressBar; use parking_lot::Mutex; fn main() { re_log::setup_logging(); ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/utils/re_error/src/lib.rs
crates/utils/re_error/src/lib.rs
//! Helpers for error handling. /// Format an error, including its chain of sources. /// /// Always use this when displaying an error, especially `anyhow::Error`. pub fn format(error: impl AsRef<dyn std::error::Error>) -> String { format_ref(error.as_ref()) } /// Format an error, including its chain of sources. /...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_protos_builder/src/lib.rs
crates/build/re_protos_builder/src/lib.rs
//! This crate contains logic for generating remote store gRPC API types as defined in //! `re_protos` proto files. We are currently generating both client and server //! definitions in the same file. //! #![expect(clippy::exit)] /// Generate rust from protobuf definitions. We rely on `tonic_build` to do the heavy li...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_protos_builder/src/bin/build_re_remote_store_types.rs
crates/build/re_protos_builder/src/bin/build_re_remote_store_types.rs
//! This binary runs the remote store gRPC service codegen manually. //! //! It is easiest to call this using `pixi run codegen-protos`, //! which will set up the necessary tools. #![expect(clippy::unwrap_used)] use camino::Utf8Path; const PROTOS_DIR: &str = "crates/store/re_protos/proto"; const INPUT_V1ALPHA1_DIR: ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_build_tools/src/lib.rs
crates/build/re_build_tools/src/lib.rs
#![expect(clippy::unwrap_used)] #![allow( clippy::allow_attributes, clippy::disallowed_methods, clippy::disallowed_types )] // False positives for using files on Wasm #![warn(missing_docs)] //! This crate is to be used from `build.rs` build scripts. use std::process::Command; use std::sync::atomic::{Atomi...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_build_tools/src/git.rs
crates/build/re_build_tools/src/git.rs
//! # Situations to consider regarding git //! //! ## Using the published crate //! //! The published crate carries its version around, which in turns gives us the git tag, which makes //! the commit hash irrelevant. //! We still need to compute _something_ so that we can actually build, but that value will be //! igno...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_build_tools/src/rustfmt.rs
crates/build/re_build_tools/src/rustfmt.rs
/// Run `rustfmt` on some Rust code. pub fn rustfmt_str(source: &str) -> Option<String> { // We need to run `cago fmt` several times because it is not idempotent; // see https://github.com/rust-lang/rustfmt/issues/5824 let source = rustfmt_once(source)?; rustfmt_once(&source) } fn rustfmt_once(source: ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_build_tools/src/rebuild_detector.rs
crates/build/re_build_tools/src/rebuild_detector.rs
#![expect(clippy::unwrap_used)] use std::collections::{HashMap, HashSet}; use std::path::{Path, PathBuf}; use cargo_metadata::camino::Utf8Path; use cargo_metadata::{CargoOpt, Metadata, MetadataCommand, Package, PackageId}; use crate::should_output_cargo_build_instructions; fn should_run() -> bool { #![expect(cl...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_build_tools/src/hashing.rs
crates/build/re_build_tools/src/hashing.rs
use std::fmt::Write as _; use std::path::{Path, PathBuf}; use std::{fs, io}; use anyhow::Context as _; use sha2::{Digest as _, Sha256}; use crate::{rerun_if_changed, rerun_if_changed_or_doesnt_exist}; // --- fn encode_hex(bytes: &[u8]) -> String { let mut s = String::with_capacity(bytes.len() * 2); for &b i...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/main.rs
crates/build/re_dev_tools/src/main.rs
//! Crate that combines several development utilities. //! //! To get an overview over all tools run `pixi run dev-tools --help`. use argh::FromArgs; mod build_examples; mod build_search_index; mod build_web_viewer; #[derive(FromArgs)] #[argh(subcommand)] enum Commands { BuildExamples(build_examples::Args), B...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_web_viewer/lib.rs
crates/build/re_dev_tools/src/build_web_viewer/lib.rs
#![expect(clippy::unwrap_used)] //! Build the Rerun web-viewer .wasm and generate the .js bindings for it. use std::time::Instant; use anyhow::Context as _; use cargo_metadata::camino::{Utf8Path, Utf8PathBuf}; pub fn workspace_root() -> Utf8PathBuf { cargo_metadata::MetadataCommand::new() .manifest_path...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_web_viewer/mod.rs
crates/build/re_dev_tools/src/build_web_viewer/mod.rs
mod lib; use argh::FromArgs; use cargo_metadata::camino::Utf8PathBuf; use lib::{Profile, Target, build, default_build_dir}; /// Build the web-viewer. #[derive(FromArgs)] #[argh(subcommand, name = "build-web-viewer")] pub struct Args { /// compile for release and run wasm-opt. /// /// Mutually exclusive wi...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_search_index/repl.rs
crates/build/re_dev_tools/src/build_search_index/repl.rs
use std::io::{Write as _, stdin, stdout}; use std::ops::ControlFlow; use cargo_metadata::semver::Version; use super::meili::SearchClient; use super::{DEFAULT_INDEX, DEFAULT_KEY, DEFAULT_URL, ingest, meili}; /// Simple terminal search client #[derive(argh::FromArgs)] #[argh(subcommand, name = "repl")] pub struct Repl...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_search_index/ingest.rs
crates/build/re_dev_tools/src/build_search_index/ingest.rs
#![expect(clippy::unwrap_used)] // build tool, so okay here /// Docs read from `/docs` mod docs; /// Examples read from `/examples` mod examples; /// Rust API reference generated by rustdoc mod rust; /// Python API reference generated by mkdocs mod python; /// C++ API reference generated by Doxygen mod cpp; use s...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_search_index/build.rs
crates/build/re_dev_tools/src/build_search_index/build.rs
use cargo_metadata::semver::Version; use super::{DEFAULT_INDEX, DEFAULT_KEY, DEFAULT_URL, ingest, meili}; /// Index documentation, examples, and API references for all languages #[derive(argh::FromArgs)] #[argh(subcommand, name = "build")] pub struct Build { /// name of the meilisearch index to create/query #...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_search_index/util.rs
crates/build/re_dev_tools/src/build_search_index/util.rs
use std::borrow::Cow; use std::ffi::OsStr; use std::io; use std::path::Path; use std::process::{Command, Stdio}; use indicatif::ProgressBar; pub trait CommandExt { fn with_cwd<P>(self, cwd: P) -> Self where P: AsRef<Path>; fn with_arg<S>(self, arg: S) -> Self where S: AsRef<OsStr>; ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_search_index/mod.rs
crates/build/re_dev_tools/src/build_search_index/mod.rs
//! This build script collects all of our documentation and examples, and //! uploads it to a Meilisearch instance for indexing. mod build; mod ingest; mod meili; mod repl; mod util; /// Meilisearch indexer and REPL #[derive(argh::FromArgs)] #[argh(subcommand, name = "search-index")] pub struct Args { #[argh(subc...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_search_index/meili.rs
crates/build/re_dev_tools/src/build_search_index/meili.rs
use std::ops::ControlFlow; use anyhow::Context as _; use url::Url; use super::ingest::Document; pub fn connect(url: &str, master_key: &str) -> anyhow::Result<SearchClient> { SearchClient::connect(url, master_key) } pub struct SearchClient { url: String, master_key: String, agent: ureq::Agent, } imp...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_search_index/ingest/rust.rs
crates/build/re_dev_tools/src/build_search_index/ingest/rust.rs
#![expect(clippy::unwrap_used)] // build tool, so okay here use std::collections::HashSet; use std::fmt::Display; use std::fs::File; use std::io::BufReader; use std::sync::mpsc; use anyhow::Context as _; use cargo_metadata::semver::Version; use indicatif::ProgressBar; use rayon::prelude::{IntoParallelIterator as _, P...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_search_index/ingest/python.rs
crates/build/re_dev_tools/src/build_search_index/ingest/python.rs
use std::collections::{BTreeMap, HashMap}; use std::process::Command; use anyhow::Context as _; use serde::Deserialize; use super::{Context, DocumentData, DocumentKind}; use crate::build_search_index::util::{CommandExt as _, ProgressBarExt as _}; const RERUN_SDK: &str = "rerun_sdk"; pub fn ingest(ctx: &Context) -> ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_search_index/ingest/cpp.rs
crates/build/re_dev_tools/src/build_search_index/ingest/cpp.rs
#![expect(clippy::unwrap_used)] // build tool, so okay here use std::collections::HashSet; use std::fmt::Display; use std::fs::read_to_string; use std::process::Command; use camino::Utf8PathBuf; use itertools::Itertools as _; use roxmltree::{Children, Descendants, Document, Node}; use super::{Context, DocumentData, ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_search_index/ingest/docs.rs
crates/build/re_dev_tools/src/build_search_index/ingest/docs.rs
#![expect(clippy::unwrap_used)] // build tool, so okay here use std::path::Path; use super::{Context, DocumentData, DocumentKind}; use crate::build_search_index::util::ProgressBarExt as _; pub fn ingest(ctx: &Context) -> anyhow::Result<()> { let progress = ctx.progress_bar("docs"); let dir = ctx.workspace_r...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_search_index/ingest/examples.rs
crates/build/re_dev_tools/src/build_search_index/ingest/examples.rs
use super::{Context, DocumentData, DocumentKind}; use crate::build_examples::{Example, ExamplesManifest, Language}; use crate::build_search_index::util::ProgressBarExt as _; const LANGUAGES: &[Language] = &[Language::Python, Language::Rust, Language::Cpp]; pub fn ingest(ctx: &Context) -> anyhow::Result<()> { let ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_examples/notebook.rs
crates/build/re_dev_tools/src/build_examples/notebook.rs
use std::fs; use std::process::Command; use indicatif::MultiProgress; use rayon::prelude::{IntoParallelIterator as _, ParallelIterator as _}; use super::{Channel, Example, wait_for_output}; /// Collect examples in the repository and run them to produce `.rrd` files. #[derive(argh::FromArgs)] #[argh(subcommand, name ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_examples/wait_for_output.rs
crates/build/re_dev_tools/src/build_examples/wait_for_output.rs
use std::io::{IsTerminal as _, stdout}; use std::process::Command; use std::time::Duration; use indicatif::{MultiProgress, ProgressBar}; /// Returns an error on non-zero returncode. pub fn wait_for_output( mut cmd: Command, name: &str, progress: &MultiProgress, ) -> anyhow::Result<()> { // Remember wh...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_examples/snippets.rs
crates/build/re_dev_tools/src/build_examples/snippets.rs
use std::collections::HashMap; use std::fs::{create_dir_all, read_to_string}; use std::path::{Path, PathBuf}; use std::process::Command; use camino::Utf8Path; use indicatif::MultiProgress; use rayon::prelude::{IntoParallelIterator as _, ParallelIterator as _}; use super::wait_for_output; /// Collect code snippets fr...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_examples/manifest.rs
crates/build/re_dev_tools/src/build_examples/manifest.rs
use std::path::PathBuf; use re_build_tools::Environment; use super::{Channel, Example}; /// Collect examples in the repository and produce a manifest file. /// /// The manifest file contains example metadata, such as their names /// and links to `.rrd` files. #[derive(argh::FromArgs)] #[argh(subcommand, name = "mani...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_examples/rrd.rs
crates/build/re_dev_tools/src/build_examples/rrd.rs
use std::fs::create_dir_all; use std::path::{Path, PathBuf}; use std::process::Command; use indicatif::MultiProgress; use rayon::prelude::{IntoParallelIterator as _, ParallelIterator as _}; use super::{Channel, Example, wait_for_output}; /// Collect examples in the repository and run them to produce `.rrd` files. #[...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_examples/example.rs
crates/build/re_dev_tools/src/build_examples/example.rs
//! Example collection and parsing. use std::collections::BTreeMap; use std::fmt::Display; use std::path::{Path, PathBuf}; use std::str::FromStr; use anyhow::Context as _; pub struct Example { /// Name of the folder it's stored in. pub name: String, pub title: String, pub dir: PathBuf, pub descri...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_examples/install.rs
crates/build/re_dev_tools/src/build_examples/install.rs
use std::process::Command; use indicatif::MultiProgress; use super::Channel; use crate::build_examples::wait_for_output::wait_for_output; /// Install the selected examples in the current environment. #[derive(argh::FromArgs)] #[argh(subcommand, name = "install")] pub struct Install { #[argh(option, description =...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_dev_tools/src/build_examples/mod.rs
crates/build/re_dev_tools/src/build_examples/mod.rs
//! This build script collects all examples which should be part of our example page, //! and either runs them to produce `.rrd` files, or builds a manifest file which //! serves as an index for the files. //! //! It identifies runnable examples by checking if they have `channel` set in //! their `README.md` frontmatte...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_build_info/src/lib.rs
crates/build/re_build_info/src/lib.rs
//! Information about the build of a Rust crate. //! //! To use this you also need to call `re_build_tools::export_env_vars()` from your build.rs. mod build_info; mod crate_version; pub use build_info::BuildInfo; pub use crate_version::{CrateVersion, Meta}; /// Create a [`BuildInfo`] at compile-time using environmen...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_build_info/src/build_info.rs
crates/build/re_build_info/src/build_info.rs
use std::borrow::Cow; /// Information about the build of a Rust crate. /// /// Create this with [`crate::build_info!`]. /// /// The `git_` fields are all empty on failure. Most likely git fails because we're not in a git repository /// to begin with, which happens because we've imported the published crate from crates...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_build_info/src/crate_version.rs
crates/build/re_build_info/src/crate_version.rs
mod meta { pub const TAG_MASK: u8 = 0b11000000; pub const VALUE_MASK: u8 = 0b00111111; pub const MAX_VALUE: u8 = VALUE_MASK; pub const RC: u8 = 0b01000000; pub const ALPHA: u8 = 0b10000000; pub const DEV_ALPHA: u8 = 0b11000000; } /// The version of a Rerun crate. /// /// Sub-set of semver supp...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/build.rs
crates/build/re_types_builder/build.rs
//! Generates flatbuffers reflection code from `reflection.fbs`. use std::path::Path; use re_build_tools::{compute_file_hash, read_versioning_hash, write_versioning_hash}; use xshell::{Shell, cmd}; // --- // NOTE: Don't need to add extra context to xshell invocations, it does so on its own. const SOURCE_HASH_PATH:...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/report.rs
crates/build/re_types_builder/src/report.rs
use std::sync::mpsc; use camino::Utf8Path; /// Creates a new context. /// /// The [`Reporter`] can be freely cloned and sent to other threads. /// /// The [`Report`] should not be sent to other threads. pub fn init() -> (Report, Reporter) { let (errors_tx, errors_rx) = mpsc::channel(); let (warnings_tx, warni...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/lib.rs
crates/build/re_types_builder/src/lib.rs
//! This crate implements Rerun's code generation tools. //! //! These tools translate language-agnostic IDL definitions (flatbuffers) into code. //! //! They are invoked by `pixi run codegen`. //! //! //! ### Organization //! //! The code generation process happens in 4 phases. //! //! #### 1. Generate binary reflecti...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/objects.rs
crates/build/re_types_builder/src/objects.rs
//! This package implements the semantic pass of the codegen process. //! //! The semantic pass transforms the low-level raw reflection data into higher level types that //! are much easier to inspect and manipulate / friendler to work with. use std::collections::BTreeMap; use anyhow::Context as _; use camino::{Utf8P...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
true
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/type_registry.rs
crates/build/re_types_builder/src/type_registry.rs
//! The Arrow registry keeps track of all type definitions and maps them to Arrow datatypes. use std::collections::HashMap; use anyhow::Context as _; use crate::data_type::{AtomicDataType, DataType, LazyDatatype, LazyField, UnionMode}; use crate::objects::EnumIntegerType; use crate::{ATTR_ARROW_SPARSE_UNION, Element...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/data_type.rs
crates/build/re_types_builder/src/data_type.rs
//! This is a limited subset of arrow datatypes. use std::collections::BTreeMap; use std::sync::Arc; use crate::TypeRegistry; /// Mode of [`DataType::Union`] /// /// See arrow docs for explanations. #[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)] pub enum UnionMode { /// Dense union Dense, /// Sparse...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/reflection.rs
crates/build/re_types_builder/src/reflection.rs
// automatically generated by the FlatBuffers compiler, do not modify // @generated use core::cmp::Ordering; use core::mem; extern crate flatbuffers; use self::flatbuffers::{EndianScalar, Follow}; #[expect(unused_imports, dead_code)] pub mod reflection { use core::cmp::Ordering; use core::mem; extern ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
true
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/docs.rs
crates/build/re_types_builder/src/docs.rs
use crate::codegen::Target; use crate::{Objects, Reporter}; /// A high-level representation of the contents of a flatbuffer docstring. #[derive(Debug, Clone, Default)] pub struct Docs { /// All documentation lines, including the leading tag, if any. /// /// If the tag is the empty string, it means the line...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/mod.rs
crates/build/re_types_builder/src/codegen/mod.rs
// TODO(#3408): remove unwrap() #![expect(clippy::unwrap_used)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum Target { Cpp, Python, Rust, /// Markdown files shown at <https://rerun.io/docs/reference/types>. /// /// This target is also used for the markdown strings in the reflection API...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/common.rs
crates/build/re_types_builder/src/codegen/common.rs
//! Helpers common to all codegen passes. use std::collections::BTreeSet; use anyhow::Context as _; use camino::Utf8PathBuf; use itertools::Itertools as _; use crate::{Docs, GeneratedFiles, Reporter}; fn is_blank<T: AsRef<str>>(line: T) -> bool { line.as_ref().chars().all(char::is_whitespace) } #[derive(Clone,...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/python/views.rs
crates/build/re_types_builder/src/codegen/python/views.rs
use super::ExtensionClass; use crate::codegen::Target; use crate::codegen::common::StringExt as _; use crate::codegen::python::{quote_doc_lines, quote_obj_docs}; use crate::{ATTR_PYTHON_ALIASES, ATTR_RERUN_VIEW_IDENTIFIER, Object, Objects, Reporter}; pub fn code_for_view( reporter: &Reporter, objects: &Objects...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/python/mod.rs
crates/build/re_types_builder/src/codegen/python/mod.rs
//! Implements the Python codegen pass. mod views; mod visualizers; use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; use std::iter; use std::ops::Deref; use anyhow::Context as _; use camino::{Utf8Path, Utf8PathBuf}; use itertools::{Itertools as _, chain}; use unindent::unindent; use self::views::code_f...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
true
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/python/visualizers.rs
crates/build/re_types_builder/src/codegen/python/visualizers.rs
use crate::codegen::autogen_warning; use crate::codegen::common::StringExt as _; use crate::{ATTR_RERUN_VISUALIZER, ATTR_RERUN_VISUALIZER_NONE, ObjectKind, Objects, Reporter}; /// Generate the `visualizers.py` file containing constants for visualizer identifiers. /// /// This function iterates through all archetypes a...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/fbs/mod.rs
crates/build/re_types_builder/src/codegen/fbs/mod.rs
//! Codegen fbs file that are used for subsequent codegen steps. use camino::{Utf8Path, Utf8PathBuf}; use super::autogen_warning; use crate::{CodeGenerator, GeneratedFiles}; pub struct FbsCodeGenerator { definition_dir: Utf8PathBuf, } impl FbsCodeGenerator { pub fn new(definition_dir: impl Into<Utf8PathBuf>...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/docs/website.rs
crates/build/re_types_builder/src/codegen/docs/website.rs
//! Generate the markdown files shown at <https://rerun.io/docs/reference/types>. use std::collections::{BTreeMap, HashMap}; use std::fmt::Write as _; use camino::Utf8PathBuf; use itertools::Itertools as _; use crate::codegen::common::ExampleInfo; use crate::codegen::{Target, autogen_warning}; use crate::objects::{F...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/docs/mod.rs
crates/build/re_types_builder/src/codegen/docs/mod.rs
mod datatype_docs; mod snippets_ref; mod website; pub use self::datatype_docs::datatype_docs; pub use self::snippets_ref::SnippetsRefCodeGenerator; pub use self::website::DocsCodeGenerator;
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/docs/snippets_ref.rs
crates/build/re_types_builder/src/codegen/docs/snippets_ref.rs
//! Generate the snippets reference. use std::cmp::Ordering; use std::collections::{BTreeMap, BTreeSet, HashMap}; use std::path::PathBuf; use anyhow::Context as _; use camino::{Utf8Path, Utf8PathBuf}; use itertools::Itertools as _; use crate::{CodeGenerator, GeneratedFiles, Object, ObjectKind, Objects, Reporter}; /...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/docs/datatype_docs.rs
crates/build/re_types_builder/src/codegen/docs/datatype_docs.rs
//! Document a datatype as human-readable markdown. use crate::codegen::StringExt as _; use crate::data_type::{AtomicDataType, DataType, UnionMode}; fn atomic_datatype_docs(page: &mut String, datatype: &AtomicDataType) { match datatype { AtomicDataType::Null => page.push_str("null"), AtomicDataTyp...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/cpp/includes.rs
crates/build/re_types_builder/src/codegen/cpp/includes.rs
use std::collections::BTreeSet; use proc_macro2::TokenStream; use quote::quote; use super::{ANGLE_BRACKET_LEFT_TOKEN, ANGLE_BRACKET_RIGHT_TOKEN, NEWLINE_TOKEN}; use crate::objects::is_testing_fqname; /// Keeps track of necessary includes for a file. pub struct Includes { system: BTreeSet<String>, local: BTre...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/cpp/array_builder.rs
crates/build/re_types_builder/src/codegen/cpp/array_builder.rs
use proc_macro2::Ident; use quote::{format_ident, quote}; use super::forward_decl::{ForwardDecl, ForwardDecls}; use crate::{Object, ObjectClass, Objects, Type}; pub fn arrow_array_builder_type(typ: &Type, objects: &Objects) -> Ident { arrow_array_builder_type_and_declaration(typ, objects, &mut ForwardDecls::defau...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/cpp/forward_decl.rs
crates/build/re_types_builder/src/codegen/cpp/forward_decl.rs
use std::collections::{BTreeMap, BTreeSet}; use proc_macro2::{Ident, TokenStream}; use quote::{format_ident, quote}; use super::{NEWLINE_TOKEN, quote_hide_from_docs}; /// A C++ forward declaration. #[derive(Debug, Clone)] pub enum ForwardDecl { Class(Ident), TemplateClass(Ident), /// Aliases are only id...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/cpp/mod.rs
crates/build/re_types_builder/src/codegen/cpp/mod.rs
mod array_builder; mod forward_decl; mod includes; mod method; use std::collections::HashSet; use std::str::FromStr as _; use camino::{Utf8Path, Utf8PathBuf}; use itertools::Itertools as _; use proc_macro2::{Ident, Literal, TokenStream}; use quote::{format_ident, quote}; use rayon::prelude::*; use self::array_builde...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
true
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/cpp/method.rs
crates/build/re_types_builder/src/codegen/cpp/method.rs
use proc_macro2::TokenStream; use quote::quote; use super::{NEWLINE_TOKEN, lines_from_docs, quote_doc_comment, quote_doc_lines}; use crate::{Docs, Objects, Reporter}; #[derive(Default)] pub struct MethodDeclaration { pub is_static: bool, pub return_type: TokenStream, pub name_and_parameters: TokenStream, ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/rust/serializer.rs
crates/build/re_types_builder/src/codegen/rust/serializer.rs
use proc_macro2::{Literal, TokenStream}; use quote::{format_ident, quote}; use super::arrow::{ ArrowFieldTokenizer, is_backed_by_scalar_buffer, quote_fqname_as_type_path, quoted_arrow_primitive_type, }; use super::util::{is_tuple_struct_from_obj, quote_comment}; use crate::data_type::{AtomicDataType, DataType,...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
true
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/rust/arrow.rs
crates/build/re_types_builder/src/codegen/rust/arrow.rs
use proc_macro2::{Literal, TokenStream}; use quote::quote; use crate::data_type::{AtomicDataType, DataType, Field, UnionMode}; // --- pub struct ArrowDataTypeTokenizer<'a> { pub datatype: &'a DataType, /// If `true`, /// then the generated code will often be shorter, as it will /// defer to calling ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/rust/api.rs
crates/build/re_types_builder/src/codegen/rust/api.rs
use std::collections::{BTreeMap, HashMap, HashSet}; use std::str::FromStr as _; use anyhow::Context as _; use camino::{Utf8Path, Utf8PathBuf}; use itertools::Itertools as _; use proc_macro2::TokenStream; use quote::{format_ident, quote}; use super::arrow::quote_fqname_as_type_path; use super::blueprint_validation::ge...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
true
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/rust/util.rs
crates/build/re_types_builder/src/codegen/rust/util.rs
//! Implements the Rust codegen pass. use camino::Utf8Path; use proc_macro2::TokenStream; use quote::quote; use crate::codegen::Target; use crate::codegen::common::{ExampleInfo, collect_snippets_for_api_docs}; use crate::objects::State; use crate::{ATTR_RUST_TUPLE_STRUCT, Docs, Object, ObjectKind, Objects, Reporter};...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/rust/mod.rs
crates/build/re_types_builder/src/codegen/rust/mod.rs
//! Implements the Rust codegen pass. mod api; mod arrow; mod blueprint_validation; mod deserializer; mod reflection; mod serializer; mod util; pub use self::api::RustCodeGenerator;
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/rust/blueprint_validation.rs
crates/build/re_types_builder/src/codegen/rust/blueprint_validation.rs
use std::collections::BTreeMap; use camino::Utf8PathBuf; use proc_macro2::TokenStream; use quote::{format_ident, quote}; use super::util::string_from_quoted; use crate::codegen::autogen_warning; use crate::codegen::common::StringExt as _; use crate::{Object, ObjectKind, Objects, Reporter}; pub(crate) fn generate_blu...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/rust/reflection.rs
crates/build/re_types_builder/src/codegen/rust/reflection.rs
use std::collections::{BTreeMap, BTreeSet, HashMap}; use camino::Utf8PathBuf; use itertools::Itertools as _; use proc_macro2::TokenStream; use quote::{format_ident, quote}; use super::util::{append_tokens, doc_as_lines}; use crate::codegen::{Target, autogen_warning}; use crate::{ ATTR_RERUN_COMPONENT_REQUIRED, AT...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/codegen/rust/deserializer.rs
crates/build/re_types_builder/src/codegen/rust/deserializer.rs
use proc_macro2::{Literal, TokenStream}; use quote::{format_ident, quote}; use crate::codegen::rust::arrow::{ ArrowDataTypeTokenizer, is_backed_by_scalar_buffer, quote_fqname_as_type_path, }; use crate::codegen::rust::util::{is_tuple_struct_from_obj, quote_comment}; use crate::data_type::{AtomicDataType, DataType,...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
true
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/bin/build_re_types.rs
crates/build/re_types_builder/src/bin/build_re_types.rs
//! This binary runs the codegen manually. //! //! It is easiest to call this using `pixi run codegen`, //! which will set up the necessary tools. // TODO(#3408): remove unwrap() #![expect(clippy::unwrap_used)] use camino::Utf8Path; use re_build_tools::{ read_versioning_hash, set_output_cargo_build_instructions, ...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/format/rust.rs
crates/build/re_types_builder/src/format/rust.rs
use crate::CodeFormatter; // --- pub struct RustCodeFormatter; impl CodeFormatter for RustCodeFormatter { fn format(&mut self, _reporter: &crate::Reporter, files: &mut crate::GeneratedFiles) { use rayon::prelude::*; re_tracing::profile_wait!("format_code"); files.par_iter_mut().for_each...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/format/fbs.rs
crates/build/re_types_builder/src/format/fbs.rs
use crate::CodeFormatter; pub struct FbsCodeFormatter; impl CodeFormatter for FbsCodeFormatter { fn format(&mut self, _reporter: &crate::Reporter, _files: &mut crate::GeneratedFiles) { // We don't have formatting for fbs files yet. } }
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/format/python.rs
crates/build/re_types_builder/src/format/python.rs
use anyhow::Context as _; use camino::{Utf8Path, Utf8PathBuf}; use crate::CodeFormatter; // --- pub struct PythonCodeFormatter { pub pkg_path: Utf8PathBuf, pub testing_pkg_path: Utf8PathBuf, } impl PythonCodeFormatter { pub fn new(pkg_path: impl Into<Utf8PathBuf>, testing_pkg_path: impl Into<Utf8PathBuf...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/format/mod.rs
crates/build/re_types_builder/src/format/mod.rs
/// Implements the formatting pass. pub trait CodeFormatter { /// Formats generated files in-place. fn format(&mut self, reporter: &crate::Reporter, files: &mut crate::GeneratedFiles); } pub struct NoopCodeFormatter; impl CodeFormatter for NoopCodeFormatter { fn format(&mut self, _reporter: &crate::Report...
rust
Apache-2.0
910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0
2026-01-04T15:43:37.979050Z
false
rerun-io/rerun
https://github.com/rerun-io/rerun/blob/910b1e72ca3ceb352b0bcf0d8d7de4f6bf4d19d0/crates/build/re_types_builder/src/format/cpp.rs
crates/build/re_types_builder/src/format/cpp.rs
use crate::CodeFormatter; // --- pub struct CppCodeFormatter; impl CodeFormatter for CppCodeFormatter { fn format(&mut self, _reporter: &crate::Reporter, files: &mut crate::GeneratedFiles) { use rayon::prelude::*; re_tracing::profile_wait!("format_code"); files.par_iter_mut().for_each(|...
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/build.rs
docs/snippets/build.rs
//! Finds all the `*.rs` files in `docs/snippets/all`, //! copies them to `src/snippets` (with slight modifications), and generate a `snippets/mod.rs` for them. //! //! The reason we combine all the snippets into a single binary //! is to reduce the amount of binaries in our workspace. //! //! Motivation: <https://gith...
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/src/lib.rs
docs/snippets/src/lib.rs
//! Snippets that we show in documentation. mod snippets; pub use snippets::run;
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/src/main.rs
docs/snippets/src/main.rs
//! Snippets that we show in documentation. pub fn main() { // Call into the generated code. snippets::run(); }
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/quick_start/quick_start_spawn.rs
docs/snippets/all/quick_start/quick_start_spawn.rs
//! Spawn a viewer and log some data. use rerun::{demo_util::grid, external::glam}; fn main() -> Result<(), Box<dyn std::error::Error>> { // Create a new `RecordingStream` which stores data in memory. let rec = rerun::RecordingStreamBuilder::new("rerun_example_quick_start_spawn").spawn()?; // Create some...
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/quick_start/quick_start_connect.rs
docs/snippets/all/quick_start/quick_start_connect.rs
//! Connect to the viewer and log some data. use rerun::{demo_util::grid, external::glam}; fn main() -> Result<(), Box<dyn std::error::Error>> { // Create a new `RecordingStream` which sends data over gRPC to the viewer process. let rec = rerun::RecordingStreamBuilder::new("rerun_example_quick_start_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/graph_directed.rs
docs/snippets/all/archetypes/graph_directed.rs
//! Log a simple directed graph. fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_graph_directed").spawn()?; rec.log( "simple", &[ &rerun::GraphNodes::new(["a", "b", "c"]) .with_positions([(0.0, 100.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/cylinders3d_batch.rs
docs/snippets/all/archetypes/cylinders3d_batch.rs
//! Log a batch of cylinders. use rerun::external::glam::vec3; fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_cylinders3d_batch").spawn()?; rec.log( "cylinders", &rerun::Cylinders3D::from_lengths_and_radii( [0.0, 2...
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_axes.rs
docs/snippets/all/archetypes/transform3d_axes.rs
//! Log different transforms with visualized coordinates axes. use rerun::AsComponents; fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_transform3d_axes").spawn()?; rec.set_time_sequence("step", 0); rec.log( "base", &[ ...
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_simple.rs
docs/snippets/all/archetypes/clear_simple.rs
//! Log and then clear data. use rerun::external::glam; fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_clear").spawn()?; #[rustfmt::skip] let (vectors, origins, colors) = ( [glam::Vec3::X, glam::Vec3::NEG_Y, glam::Vec3::NEG_X, ...
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_multiple_plots.rs
docs/snippets/all/archetypes/scalars_multiple_plots.rs
//! Log a scalar over time. fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_scalar_multiple_plots").spawn()?; let mut lcg_state = 0_i64; // Set up plot styling: // They are logged static as they don't change over time and apply to all t...
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_schema_simple.rs
docs/snippets/all/archetypes/mcap_schema_simple.rs
//! Log a simple MCAP schema definition. fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_mcap_schema").spawn()?; // Example ROS2 message definition for a simple Point message let point_schema = "float64 x\nfloat64 y\nfloat64 z"; 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/archetypes/arrows3d_row_updates.rs
docs/snippets/all/archetypes/arrows3d_row_updates.rs
//! Update a set of vectors over time. //! //! See also the `arrows3d_column_updates` example, which achieves the same thing in a single operation. use rerun::demo_util::linspace; fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_arrows3d_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/annotation_context_segmentation.rs
docs/snippets/all/archetypes/annotation_context_segmentation.rs
//! Log a segmentation image with annotations. use ndarray::{Array, ShapeBuilder as _, s}; fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_annotation_context_segmentation") .spawn()?; // create an annotation context to describe the cla...
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_ui_radius.rs
docs/snippets/all/archetypes/line_strips3d_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_strip3d_ui_radius").spawn()?; // A blue line with a scene unit radii of 0.01. let points = [[0., 0., 0.], [0., 0., 1.], [1., 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/mesh3d_indexed.rs
docs/snippets/all/archetypes/mesh3d_indexed.rs
//! Log a simple colored triangle with indexed drawing. fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_mesh3d_indexed").spawn()?; rec.log( "triangle", &rerun::Mesh3D::new([[0.0, 1.0, 0.0], [1.0, 0.0, 0.0], [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/series_points_style.rs
docs/snippets/all/archetypes/series_points_style.rs
//! Log a scalar over time. fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_series_point_style").spawn()?; // Set up plot styling: // They are logged static as they don't change over time and apply to all timelines. // Log two point ser...
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_simple.rs
docs/snippets/all/archetypes/ellipsoids3d_simple.rs
//! Log random points and the corresponding covariance ellipsoid. use rand::prelude::*; fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_ellipsoid_simple").spawn()?; let sigmas: [f32; 3] = [5., 3., 1.]; let mut rng = rand::rngs::SmallRng::...
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_integration.rs
docs/snippets/all/archetypes/text_log_integration.rs
//! Shows integration of Rerun's `TextLog` with the native logging interface. use rerun::external::log; fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_text_log_integration").spawn()?; // Log a text entry directly: rec.log( "logs",...
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.rs
docs/snippets/all/archetypes/transform3d_hierarchy.rs
//! Log different transforms between three arrows. fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_transform3d_hierarchy").spawn()?; // TODO(#5521): log two views as in the python example rec.set_duration_secs("sim_time", 0.0); // Pla...
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_simple.rs
docs/snippets/all/archetypes/mesh3d_simple.rs
//! Log a simple colored triangle. fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_mesh3d").spawn()?; rec.log( "triangle", &rerun::Mesh3D::new([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]) .with_vertex_normals...
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_connections.rs
docs/snippets/all/archetypes/annotation_context_connections.rs
//! Log annotation context with connections between keypoints. fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_annotation_context_connections") .spawn()?; // Log an annotation context to assign a label and color to each class // Cre...
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/coordinate_frame_builtin_frames.rs
docs/snippets/all/archetypes/coordinate_frame_builtin_frames.rs
//! Demonstrates using explicit `CoordinateFrame` with implicit transform frames only. #![expect(clippy::cast_possible_wrap)] fn main() -> Result<(), Box<dyn std::error::Error>> { let rec = rerun::RecordingStreamBuilder::new("rerun_example_transform3d_hierarchy").spawn()?; rec.set_time_sequence("time", 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/video_manual_frames.rs
docs/snippets/all/archetypes/video_manual_frames.rs
//! Log a video asset using manually created 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/points2d_random.rs
docs/snippets/all/archetypes/points2d_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_points2d_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