Skip to content

Polochon-street/bliss-wasm-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Install emscripten and activate it using the offical instructions
  2. Install the wasm32-unknown-emscripten target using:
    rustup target add wasm32-unknown-emscripten
    rustup install nightly
    rustup component add rust-src --toolchain nightly
  1. Build the .js file using cargo +nightly build --release --target=wasm32-unknown-emscripten -Z build-std=panic_abort,std
  2. Start the js file with node ./target/wasm32-unknown-emscripten/release/wasm-test.js to test it out!

About

An example to use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages