Open Mobilpadde opened 6 years ago
I don't think a package.json
is required, because yarn
and Node packages aren't required. Attached are the steps I utilized for set-up and testing.
Install dependencies...
rustup target add wasm32-unknown-unknown
cargo install cargo-web
Make a Rust project and cd
into it's root...
mkdir -v git/local/rust-wasm
cd git/local/rust-wasm
cargo init wasm-snake
cd wasm-snake
Follow along with videos...
Rust Web Assembly - Building a Canvas Snake Game using Stdweb - Part 1
Rust Web Assembly - Building a Canvas Snake Game using Stdweb - Part 2
Then compile and start development server...
cargo web start --target=wasm32-unknown-unknown
Open a browser pointing at localhost...
firefox http://localhost:8000
And enjoy :-D
I think the
package.json
is missing 😇😅