Skip to content

Sample web assembly code using Rust. Passing random number to Rust for addition calculation. Rust returns output and output get rendered on page.

Notifications You must be signed in to change notification settings

fahimbabarpatel/rust_webassembly_sample

Repository files navigation

Image

get the necessary cargo stuff

cargo install wasm-pack

make a new rust project and do your code

cargo init --lib

make the package

wasm-pack build

get the necessary npm stuff

npm install

bundle everything

node_modules/.bin/webpack

copy index.html to dist folder

start the server

cd dist; ../node_modules/.bin/wasm-server

About

Sample web assembly code using Rust. Passing random number to Rust for addition calculation. Rust returns output and output get rendered on page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published