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
- Host: GitHub
- URL: https://github.com/ffflorian/rust-wasm-demo
- Owner: ffflorian
- License: mit
- Created: 2017-07-11T14:29:02.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2020-07-26T08:24:16.000Z (almost 6 years ago)
- Last Synced: 2025-03-29T20:15:09.714Z (about 1 year ago)
- Topics: rust, wasm, webassembly
- Language: HTML
- Homepage: https://ffflorian.github.io/rust-wasm-demo/
- Size: 87.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.