Second revision of the repository.
-
Download and install rustup. (required)
https://rustup.rs/ or install with your favourite package manager.
-
Download and install Visual Studio Code. (optional, if you know an alternative)
https://code.visualstudio.com/Download or install with your favourite package manager.
- Install all of the recommended visual studio code extensions. (required)
-
Run all of the following commands in your terminal. (required)
# Rust Toolchain rustup toolchain install nightly rustup target add wasm32-unknown-unknown --toolchain nightly rustup component add llvm-tools-preview --toolchain nightly # Project Tools cargo install cargo-make cargo install cargo-watch cargo install miniserve --locked cargo install -f wasm-bindgen-cli cargo install wasm-pack
See makefile.toml, and any nested maketile.toml, for more details.
Builds all packages, filling intermediate files for quick iteration.
cargo make
cargo make build
cargo make wasm
- In Visual Studio Code's integrated terminal look for the
Watch - WASM
andServe - WASM
tasks. Watch - WASM
: informs of any compiler errors.Serve - WASM
: supplies the url to navigate to for previewing game.
This is only necessary if you are not using Visual Studio Code.
cd crates/rrr_wasm
cargo make dev
If your shell is not listed here, please check completions list, add instructions, and make a PR.
rrr completions powershell | Out-String | Invoke-Expression