0.12.0 • Published 9 months ago
klvm_wasm v0.12.0
The klvm_rs package has JavaScript bindings for the rust implementation of klvm in wasm.
This project is very immature, and only some test API is available for the moment. Pull requests are welcome.
Build
Use wasm-pack to build the wasm pkg file used with npm. Install it with:
cargo install wasm-packThen build with
# Make sure you're at <klvm_rs root>/wasm
wasm-pack build --release --target=nodejsTest
Prerequisite:
- NodeJS >= 16
- Wasm files built by
wasm-packcommand exist at<klvm_rs root>/wasm/pkg/
# Make sure you're at <klvm_rs root>/wasm
node ./tests/index.js