An open API service indexing awesome lists of open source software.

https://github.com/ffflorian/rust-wasm-demo

Rust Demo in WebAssembly
https://github.com/ffflorian/rust-wasm-demo

rust wasm webassembly

Last synced: about 2 months ago
JSON representation

Rust Demo in WebAssembly

Awesome Lists containing this project

README

          

# rust-wasm-demo

Immediately see the result on the [GitHub page](https://ffflorian.github.io/rust-wasm-demo/site/).

## Building Prerequisites
0. You need a browser that [supports WebAssembly](https://caniuse.com/#feat=wasm) (e.g. not Edge or IE).
1. Install [Node.js](https://nodejs.org/).
2. Install [Emscripten](http://webassembly.org/getting-started/developers-guide/).
3. Install [Rust](https://rustup.rs/).
4. Install the WASM target for Rust:

`rustup target add wasm32-unknown-emscripten`

5. Clone this repository:

`git clone https://github.com/ffflorian/rust-wasm-demo.git`.

6. In the cloned folder, run `npm install`.

## Building
* On Unix-based systems, run `npm run build`.
* On other systems, please refer to the [Hackernoon's Guide](https://hackernoon.com/compiling-rust-to-webassembly-guide-411066a69fde).

## See the results
* Run `npm run start`.