This crate is responsible for building Wasm specific bindings.
To build some dependencies you need to first install
- Protobuf
- Emscripten for compiling to Wasm
- Firefox for testing Wasm
brew install protobuf emscripten
On first usage you will need to run:
make init
make pack
This will generate the following artifacts:
pkg/package.json
pkg/breez_sdk_liquid_wasm_bg.wasm
pkg/breez_sdk_liquid_wasm_bg.d.wasm
pkg/breez_sdk_liquid_wasm.d.ts
pkg/breez_sdk_liquid_wasm.js
make test