Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alwinsden/wasm-rust-test
run test of wasm with .rs
https://github.com/alwinsden/wasm-rust-test
Last synced: about 1 month ago
JSON representation
run test of wasm with .rs
- Host: GitHub
- URL: https://github.com/alwinsden/wasm-rust-test
- Owner: alwinsDen
- Created: 2024-06-30T16:38:37.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-07-07T18:20:46.000Z (6 months ago)
- Last Synced: 2024-07-08T18:51:23.021Z (6 months ago)
- Language: JavaScript
- Homepage: https://wasm-rust-test-psi.vercel.app
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# WASM Rust Dev Test
## Pre-requisites
#### Rust Installer
Install Rust using the following command:
```commandline
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```#### Install WASM pack
Install the wasm-pack using Cargo:
```commandline
cargo install wasm-pack
```## Building the WASM binary web target
For NPM users [post-building]:
```commandline
yarn run serve
```Use wasm-pack to build the WASM binary targeting the web:
```commandline
wasm-pack build --target web
```## Resources
[rustwasm.github.io](https://rustwasm.github.io/wasm-bindgen/examples/index.html)[MDN web docs](https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_Wasm)