Includes: - Rust library - Command line interface - Web interface
Need installed: cargo, rust, npm
wasm-pack
cargo-generate
:
cargo install cargo-generate
Initialize javascript setup from inside web/www
```
cd web/www
cd www npm install ```
npm run start
It is possible to build this so that you can serve all the file statically.
First, run npm run build
to put the files in web/www/dist
, then serve the dist
directory.
Make sure that your webserver (e.g. nginx) is attaching the application/wasm
MIME type for the .wasm
resources.
You can enforce this in nginx by adding the following line to /etc/nginx/mime.types
:
application/wasm wasm