@diodeinc/pcb-zen-wasm
v0.4.53
Published
WebAssembly bindings for the Zener PCB design language
Readme
pcb-zen-wasm
pcb-zen-wasm exposes the Zener evaluator to browser applications through
WebAssembly.
Results are ordinary JavaScript values (number, object, array, null).
Values outside Number.MAX_SAFE_INTEGER follow JavaScript Number precision.
bin/build-wasm-bundle.sh builds a local browser
bundle with wasm-pack in target/wasm-bundle. It does not publish anything.
Pass ipc to the same script to build the IPC bindings.
To test a generated bundle against a pcb publish release archive, run:
node crates/pcb-zen-wasm/scripts/eval-publish-bundle.mjs \
--build-wasm \
--stdlib path/to/stdlib.tar.zst \
--bundle path/to/release.zip