This is small example on how to use bliss-rs with a WASM target.
Following those steps should generate a .js file that can be started with e.g. node.
How to build:
- Install emscripten and activate it using the offical instructions
- Install the wasm32-unknown-emscripten target using:
rustup target add wasm32-unknown-emscripten
rustup install nightly
rustup component add rust-src --toolchain nightly
- Build the .js file using
cargo +nightly build --release --target=wasm32-unknown-emscripten -Z build-std=panic_abort,std
- Start the js file with
node ./target/wasm32-unknown-emscripten/release/wasm-test.js
to test it out!