Skip to content

minimal example of compiling rust to wasm and using it in a browser

Notifications You must be signed in to change notification settings

ivstas/rust-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust wasm

this is very basic example of rust being compiled to wasm and run in a browser

environment

install rust via rustup

After installing rust add wasm compile target:

rustup update
rustup target add wasm32-unknown-unknown --toolchain nightly

npm

npm install
npm run compile-rust-wasm

After this you can start webpack dev server:

npm run start:dev

About

minimal example of compiling rust to wasm and using it in a browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published