WASM Bindings Context
Overview
wasm-bindings provides browser-facing Rust WASM utilities for fuzzy matching, ANSI rendering, and filter validation.
Start Here (First Files to Open)
application/apps/rustcore/wasm-bindings/Cargo.tomlapplication/apps/rustcore/wasm-bindings/src/lib.rsapplication/apps/rustcore/wasm-bindings/src/application/apps/rustcore/wasm-bindings/spec/application/apps/rustcore/wasm-bindings/pkg/application/apps/rustcore/wasm-bindings/package.json.ai/knowledge/application/client/AGENTS.md
If You Need X, Go to Y
- Tune fuzzy matching output/scoring: matcher code in
application/apps/rustcore/wasm-bindings/src/. - Change ANSI conversion or stripping behavior: ANSI conversion code in
application/apps/rustcore/wasm-bindings/src/. - Update regex/filter validation messages: filter validation code in
application/apps/rustcore/wasm-bindings/src/. - Validate browser compatibility regressions: WASM-facing specs in
application/apps/rustcore/wasm-bindings/spec/.
Cross-Module Dependency Map
- Built as a WASM package consumed by
application/client. - Interacts with frontend behavior, not the Node native addon path.
Landmarks and Hotspots
matcherintegration withskimscoring.ansiHTML conversion rules and escaping.filterregex validation and error messaging.- Browser runtime compatibility (Karma/ChromeHeadless) is the critical hotspot.
Quick Commands
- Build:
cargo chipmunk build wasm -u print - Test:
cargo chipmunk test wasm -u print - Lint:
cargo chipmunk lint wasm -u print