Expand description
Serves the web viewer wasm/html.
§Feature flags
-
__disable_server— This crate embeds the web viewer.wasm, and so before building this crate you must build the.wasmusingpixi run rerun-build-web-release.If for some reason you need to build this crate without the
.wasmbeing built, then you can do so in one of two ways:- Use
--features __disable_serverwhen building this crate (or--all-features). - Compile with the env-var
RERUN_DISABLE_WEB_VIEWER_SERVER=1
This will cause this crate to build despite the
.wasmbeing missing, BUT it will panic at runtime! For instance: when rustdoc builds the docs for this crates, it uses--all-features, which means it can build the docs for this crate without having to build the web-viewer first. Similarly, our CI will enableRERUN_DISABLE_WEB_VIEWER_SERVER=1before building unit tests, because none of the unit tests actually rely on us serving the.wasmfile. - Use
-
__trailing_web_viewer— Build the binary to expect web viewer assets in trailing data. This can be enabled in two ways:- Compile with the env-var
RERUN_TRAILING_WEB_VIEWER=1 - Use
--features __trailing_web_viewerwhen building this crate
When enabled, the binary will NOT include the web viewer assets at compile time. Instead, it expects them to be appended as a zip archive via a post-processing step using
scripts/append_web_viewer.py. This allows parallel building of CLI and web viewer in CI, which are then combined later.WARNING: Binaries built this way CANNOT serve the web viewer until the post-processing step is completed. Attempting to do so will result in a panic.
- Compile with the env-var
-
__external_web_viewer— Build without any built-in web viewer assets. This can be enabled in two ways:- Compile with the env-var
RERUN_EXTERNAL_WEB_VIEWER=1 - Use
--features __external_web_viewerwhen building this crate
When enabled, the binary will NOT include the web viewer assets at compile time. Instead, they must be loaded at runtime from a zip archive on disk (see
WebViewerServer::with_archive). This is used by Python wheels that ship the assets asrerun_sdk/web_viewer.zipinstead of embedding them in the extension module.WARNING: Creating a
WebViewerServerwithout an assets archive path will fail in such builds. - Compile with the env-var
-
analytics— Enable anonymized telemetry using our analytics SDK.
Structs§
- WebViewer
Data - The contents of the files that make up the web viewer application.
- WebViewer
Server - HTTP host for the Rerun Web Viewer application This serves the HTTP+Wasm+JS files that make up the web-viewer.
- WebViewer
Server Port - Typed port for use with
WebViewerServer
Enums§
- WebViewer
Data Error - Failure to load the
WebViewerData. - WebViewer
Server Error - Failure to host the web viewer.