# Embedded Coverview

Source: https://github.com/antmicro/coverview/tree/30bda5a9ccf8a969e650cf84c1ca6c68d0ecb1d0

This build includes Coverview's own WASM Verilator DAT parser. It is served locally in an iframe and loaded only when viewing coverage. No simulation data or source is uploaded.

To reproduce the bundle, check out the revision above, run `npm ci`, and build `dat_parser` with Rust 1.96.0 and `cargo build --release --locked --target wasm32-unknown-unknown -j "$(nproc)"`. Run wasm-bindgen 0.2.127 with `--target web --out-dir dat_parser/pkg`, and link `src/dat_parser` to `../dat_parser/pkg`.

Copy `playground-bridge.js` into `src`, add `import "./playground-bridge.js"` to `src/main.js`, then run `npm run build:vite -- --base ./`. Copy the resulting index.html and assets here. The bridge validates the parent window and origin, accepts in-memory coverage and source files, and reports when parsing is complete.

Coverview is Apache-2.0. See LICENSE.txt. Upstream package-lock.json and dat_parser/Cargo.lock pin its dependencies.
