Expand description
The Rerun logging SDK
This is the bare-bones version of the rerun
crate.
rerun
exports everything in re_sdk
, so in most cases you want to use rerun
instead.
Please read the docs for the rerun
crate instead.
§Feature flags
-
data_loaders
— Support for using Rerun’s data-loaders directly from the SDK.See our
log_file
example and https://www.rerun.io/docs/reference/data-loaders/overview for more information. -
web_viewer
— Support serving a web viewer over HTTP.Enabling this inflates the binary size quite a bit, since it embeds the viewer wasm.
For faster & easier builds, a pre-built web-views comes bundled with the crate as a Wasm binary. Enabling this feature will embed this pre-built web viewer.
However, when building from source in the repository, this feature adds quite a bit to the compile time since it requires compiling and bundling the viewer as wasm.
Modules§
- Re-exports of other crates.
- global 🔒Keeps track of global and thread-local
RecordingStream
s and handles fallback logic between them. - Things directly related to logging.
- log_sink 🔒
- Different destinations for log messages.
- spawn 🔒
- Time-related types.
- Methods for spawning the web viewer and streaming the SDK log stream to it.
Macros§
- Build an
EntityPath
from parts that are not escaped:
Structs§
- The user-chosen name of the application doing the logging.
- The fully-qualified name of an
Archetype
, e.g.rerun.archetypes.Points3D
. - The fully-qualified name of a
Component
, e.g.rerun.components.Position2D
. - Recommended settings for the
DataLoader
. - The fully-qualified name of a [
Datatype
], e.g.rerun.datatypes.Vec2D
. - The unique identifier of an entity, e.g.
camera/3/points
- The different parts that make up an
EntityPath
. - A generic indicator component that can be specialized for any
Archetype
. - A unique numeric index for each individual instance within a batch.
- Represents a limit in how much RAM to use for the entire process.
- An arbitrary named indicator component.
- A
RecordingStream
handles everything related to logging data into Rerun. - Construct a
RecordingStream
. - Options to control the behavior of
spawn
. - A unique id per store.
- A date-time represented as nanoseconds since unix epoch
- A point in time on any number of
Timeline
s. - A time frame/space, e.g.
log_time
orframe_nr
, coupled with the type of time it keeps.
Enums§
- Errors that might happen when loading data through a
DataLoader
. - What
DataLoader
s load. - Holds either an owned
ComponentBatch
that lives on heap, or a reference to one. - Errors that can occur when creating/manipulating a
RecordingStream
. - Errors that can occur when
spawn
ing a Rerun Viewer. - What kind of Store this is.
Constants§
Traits§
- An archetype is a high-level construct that represents a set of
Component
s that usually play well with each other (i.e. they compose nicely). - Describes the interface for interpreting an object as a bundle of
Component
s. - A
ComponentBatch
represents an array’s worth ofComponent
instances. - A
DataLoader
loads data from a file path and/or a file’s contents. - A
Loggable
represents a single instance in an array of loggable data. - A
LoggableBatch
represents an array’s worth ofLoggable
instances, ready to be serialized. - Approximations of stack and heap size for both internal and external types.
Functions§
- The version of the Rerun SDK.
- Check whether we are the child of a fork.
- Checks the
RERUN
environment variable. If not found, returns the argument. - The default amount of time to wait for the TCP connection to resume during a flush
- The default address of a Rerun TCP server which an SDK connects to.
- Returns path for force sink if private environment variable
_RERUN_TEST_FORCE_SAVE
is set - Helper to get the value of the
RERUN
environment variable. - Creates a new
re_log_types::StoreInfo
which can be used withRecordingStream::new
. - Spawns a new Rerun Viewer process ready to listen for TCP connections.
Type Aliases§
- Results that can occur when creating/manipulating a
RecordingStream
.