Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 503 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 503 Bytes

Building the Rust bits

Install dependencies

$ rustup default nightly
$ rustup target add wasm32-unknown-unknown
$ cargo +nightly install wasm-bindgen-cli

In wasm/

$ cargo +nightly build --target wasm32-unknown-unknown --release
$ wasm-bindgen target/wasm32-unknown-unknown/release/synthrs_wasm.wasm --out-dir bindgen

Serving the bundled wasm

A compressed .gz is ok, but make sure the Content-Type header of the .wasm is application/wasm, or it will fail to load.