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.
Re-exports§
pub use web_viewer::serve_web_viewer;
Modules§
- external
- Re-exports of other crates.
- grpc_
server - Method for spawning a gRPC server and streaming the SDK log stream to it.
- log
- Things directly related to logging.
- sink
- Different destinations for log messages.
- time
- Time-related types.
- web_
viewer - Methods for spawning the web viewer and streaming the SDK log stream to it.
Macros§
- entity_
path - Build an
EntityPath
from parts that are not escaped:
Structs§
- Application
Id - The user-chosen name of the application doing the logging.
- Archetype
Name - The fully-qualified name of an
Archetype
, e.g.rerun.archetypes.Points3D
. - Component
Descriptor - A
ComponentDescriptor
fully describes the semantics of a column of data. - Component
Name - The fully-qualified name of a
Component
, e.g.rerun.components.Position2D
. - Data
Loader Settings - Recommended settings for the
DataLoader
. - Datatype
Name - The fully-qualified name of a [
Datatype
], e.g.rerun.datatypes.Vec2D
. - Entity
Path - The unique identifier of an entity, e.g.
camera/3/points
- Entity
Path Part - The different parts that make up an
EntityPath
. - Generic
Indicator Component - A generic indicator component that can be specialized for any
Archetype
. - Instance
- A unique numeric index for each individual instance within a batch.
- Memory
Limit - Represents a limit in how much RAM to use for the entire process.
- Named
Indicator Component - An arbitrary named indicator component.
- Recording
Properties - Archetype: A list of properties associated with a recording.
- Recording
Stream - A
RecordingStream
handles everything related to logging data into Rerun. - Recording
Stream Builder - Construct a
RecordingStream
. - Serialized
Component Batch - The serialized contents of a
ComponentBatch
with associatedComponentDescriptor
. - Serialized
Component Column - A column’s worth of component data.
- Spawn
Options - Options to control the behavior of
spawn
. - StoreId
- A unique id per store.
- Time
Cell - An typed cell of an index, e.g. a point in time on some unknown timeline.
- Time
Point - A point in time on any number of
Timeline
s. - Timeline
- A time frame/space, e.g.
log_time
orframe_nr
, coupled with the type of time it keeps.
Enums§
- Data
Loader Error - Errors that might happen when loading data through a
DataLoader
. - Deserialization
Error - Loaded
Data - What
DataLoader
s load. - Recording
Stream Error - Errors that can occur when creating/manipulating a
RecordingStream
. - Serialization
Error - Spawn
Error - Errors that can occur when
spawn
ing a Rerun Viewer. - Store
Kind - What kind of Store this is.
Constants§
- DEFAULT_
CONNECT_ URL - The default URL of a Rerun gRPC /proxy server.
- DEFAULT_
SERVER_ PORT - The default port of a Rerun gRPC /proxy server.
Traits§
- Archetype
- 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). - AsComponents
- Describes the interface for interpreting an object as a bundle of
Component
s. - Component
- A
Component
describes semantic data that can be used by any number ofArchetype
s. - Component
Batch - A
ComponentBatch
represents an array’s worth ofComponent
instances. - Data
Loader - A
DataLoader
loads data from a file path and/or a file’s contents. - Loggable
- A
Loggable
represents a single instance in an array of loggable data. - Loggable
Batch - A
LoggableBatch
represents an array’s worth ofLoggable
instances, ready to be serialized. - Size
Bytes - Approximations of stack and heap size for both internal and external types.
Functions§
- build_
info - The version of the Rerun SDK.
- cleanup_
if_ forked_ child - Check whether we are the child of a fork.
- decide_
logging_ enabled - Checks the
RERUN
environment variable. If not found, returns the argument. - default_
flush_ timeout - The default amount of time to wait for the gRPC connection to resume during a flush
- default_
server_ addr Deprecated - The default address of a Rerun gRPC server which an SDK connects to.
- forced_
sink_ path - Returns path for force sink if private environment variable
_RERUN_TEST_FORCE_SAVE
is set - new_
store_ info - Creates a new
re_log_types::StoreInfo
which can be used withRecordingStream::new
. - spawn
- Spawns a new Rerun Viewer process ready to listen for connections.
Type Aliases§
- Deserialization
Result - Recording
Stream Result - Results that can occur when creating/manipulating a
RecordingStream
. - Serialization
Result