Expand description
wasm-bindgen surface for @ruvector/typesafe — the fallback backend, kept
byte-for-byte behind the same JSON contract as the native binding.
ADR-005: the built module must import NO WASI fs/net symbols;
scripts/check-wasm-imports.mjs enforces it in CI. Nothing here touches the
filesystem, the network, or logging of state.
Error discipline: request-level failures are returned as
{"error":{"kind":"limit"|"invalid"|"embedder","message":"..."}}; only a
bad options JSON / unsupported embedder / failed model load throws (a JS
exception from the constructor or fromBytes).
Structs§
- Engine
- A compiled decision engine. WASM is single-threaded, so the core engine is
held directly (no
Arc/lock);trainJsontakes&mut self.
Functions§
- version
- Crate (== Cargo workspace) version.