Build tool for deploying Rust WASM code to Screeps game servers.
Best used with [screeps-game-api].
This implements type-safe WASM bindings to the Screeps in-game API.
This is not fully tested, but feel free to use! Issues are welcome.
cargo-screeps has three build options:
--build:cargo-web generates for a generic JS file, since we know we're deploying to node__initialize function which cargo-web generates, using require('compiled') to get the WASM bytestarget/main.js containing processed JS and copy WASM file to target/compiled.wasm--upload:target/*.js and target/*.wasm, keeping track of filenamesscreeps.toml for upload options--check:cargo web --check --target=wasm32-unknown-unknown