Skip to content

WebAssembly

Leonard Ramminger edited this page Aug 31, 2026 · 1 revision

WebAssembly

The wasm feature provides wasm-bindgen exports for browser or Node runtimes.

Features enabled

yaml, protobuf, call-engine, plus HTTP via fetch (YcallrWasmClient).

Key exports

Export Purpose
compileYaml Compile YAML to protobuf bytes
YcallrApi.fromProto Load API from bytes
installProfile / loadInstalled Native-style install paths where supported
YcallrWasmClient.call Execute prepared request via fetch

Testing

wasm-pack test --node --lib --features wasm

Or from the Makefile:

make test-wasm

WASM coverage is exercised separately from native tarpaulin (which excludes wasm.rs).

Clone this wiki locally