Skip to main content

Crate re_web_viewer_server

Crate re_web_viewer_server 

Source
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 .wasm using pixi run rerun-build-web-release.

    If for some reason you need to build this crate without the .wasm being built, then you can do so in one of two ways:

    • Use --features __disable_server when 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 .wasm being 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 enable RERUN_DISABLE_WEB_VIEWER_SERVER=1 before building unit tests, because none of the unit tests actually rely on us serving the .wasm file.

  • analytics — Enable anonymized telemetry using our analytics SDK.

Structs§

WebViewerServer
HTTP host for the Rerun Web Viewer application This serves the HTTP+Wasm+JS files that make up the web-viewer.
WebViewerServerPort
Typed port for use with WebViewerServer

Enums§

WebViewerServerError
Failure to host the web viewer.

Constants§

DEFAULT_WEB_VIEWER_SERVER_PORT