# inspector-dist
Publish staging area for the Inspector UI bundle.
`build.rs` embeds two directories into the crate via `include_dir!`:
- `inspector-dist/inspector-ui/` — the built Inspector UI SPA (served at
`/inspector/ui/`).
- `inspector-dist/inspector-tab/` — the shared custom-tab stylesheet (served at
`/inspector/tab.css`).
These assets are generated by the frontend build (`frontend/dist/...`), which
lives outside this crate and therefore never ships to crates.io. To make the
Inspector UI a real input to the published crate, `scripts/stage-inspector-bundle.mjs`
copies the built assets into this directory before `cargo package` / publish,
and `scripts/verify-inspector-bundle.mjs` asserts they landed in the `.crate`
archive and are served (not `inspector.ui_asset_not_found`).
The generated `inspector-ui/` and `inspector-tab/` contents are intentionally
**not** committed: they are staged fresh during publish. For in-workspace dev
builds `build.rs` falls back to `../../../frontend/dist/...`, so nothing needs
to be staged locally. This directory only needs to exist.