You need Node.js, Rust, and wasm-bindgen-cli.
The following assumes the root of this repo is the current working directory.
To build the Rust engine, first move into the lib subdirectory and then use cargo:
browser$ cd lib
browser/lib$ cargo build --target wasm32-unknown-unknown --releaseOptionally run the tests (before cargo build):
browser/lib$ cargo testThen generate the JavaScript bindings:
browser/lib$ wasm-bindgen target/wasm32-unknown-unknown/release/lib.wasm --out-dir ../lib-bindings/ --target bundlerNow you can move back to the root and run the full app:
browser/lib$ cd ..
browser$ npm startThe final native binary is built with:
browser$ npm run package