Expand description
Inspector UI bundle serving for the shared inspector paths:
GET /inspector/ui/ -> index.html
GET /inspector/ui/
The bundle is embedded into the binary at build time via include_dir!
(staged from frontend/dist/inspector-ui and frontend/dist/inspector-tab
by build.rs) and served entirely from memory. This is the only serving
path: there is no filesystem-root mode and no CDN fallback, so every runner
(native or wasm) serves the same embedded bytes.
Per-actor public paths (/inspector/custom-tabs/*) are NOT served here;
they depend on the actor’s config and live in the inspector handler itself.
Functions§
- is_
public_ inspector_ bundle_ path - Whether a path is one of the shared “public” inspector routes that must never require the per-actor bearer token. Tab-config and custom-tabs are per-actor and must be checked separately by the inspector handler since this module doesn’t carry their bytes.
- serve_
inspector_ bundle - Try to serve a request from the embedded inspector-UI bundle.
- serve_
wasm_ custom_ tab_ unavailable - Wasm runtimes cannot read
inspector.tabs[].sourcefiles from disk, soGET /inspector/custom-tabs/*short-circuits to this styled HTML page inside the iframe.