Skip to content

Instantly share code, notes, and snippets.

@harlantwood
Last active July 21, 2018 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlantwood/a1dd738ec529dd41c927dbe7c9c2bd26 to your computer and use it in GitHub Desktop.
Save harlantwood/a1dd738ec529dd41c927dbe7c9c2bd26 to your computer and use it in GitHub Desktop.
# install rust + cargo
curl https://sh.rustup.rs -sSf | sh
brew install emscripten
cargo install cargo-web
git clone https://github.com/DenisKolodin/yew.git
cd yew/examples/todomvc
cargo web build --target=wasm32-unknown-emscripten
cp static/* target/wasm32-unknown-emscripten/debug/
cd target/wasm32-unknown-emscripten/debug
http-server # or any webserver; get this one with npm i -g http-server
# You should now see TODOMVC in Rust / Yew via WASM!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment