Last active
July 21, 2018 08:31
-
-
Save harlantwood/a1dd738ec529dd41c927dbe7c9c2bd26 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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