A project used for a meetup talk about getting started with rust & wasm
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
crates
dist
docs
presentation_notes
sass
src
ts
.gitignore
.travis.yml
Cargo.lock
Cargo.toml
Gemfile
Gemfile.lock
Procfile
README.md
build.sh
build_debug.sh
build_wasm.bat
package-lock.json
package.json
tsconfig.json
webpack.config.js

README.md

wasm_tutorial

This project is used as a contrived example of how to use Web Assembly in the browser today.

follow the tutorial

If you are ready to see it in action the result is hosted here

If you wanted to run it yourself you would need to do the following

git clone https://github.com/freemasen/wasm_tutorial
cd wasm_tutorial
./build.sh
cargo run

The above command requires rustup and cargo are installed and will install the nightly version of the compiler as well as the wasm32-unknown-unknown target as wells as a few command line tools via cargo install. In addition to the rust dependencies you would need node/npm installed and the project will be installing all of the dependencies, including typescript and webpack.

contributing

If you have found a typo in the tutorial or an error in the code, please let me know by either opening an issue or pull request on this repo.