harryprayiv / run-cycle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Nix 83.7%Language:Rust 14.4%Language:JavaScript 1.0%Language:HTML 0.5%Language:CSS 0.4%