Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 729 Bytes

README.md

File metadata and controls

45 lines (28 loc) · 729 Bytes

webassembly-rust-snake

Develop

Prerequisites

Install Rust

Install wasm-pack, devserver and cargo-watch

cargo install wasm-pack devserver cargo-watch

If installing the devserver fails because of missing ssl library dependencies, you need to first install libssl-dev libraries to your system. On Ubuntu, the command would be

 sudo apt-get install libssl-dev

Build interactively

Build interactively on each change

cargo watch -- wasm-pack build --target web

Serve

devserver

Open http://localhost:8080/ in your browser

Build

Build with

wasm-pack build --target web