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 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.wasmupload:target/*.js and target/*.wasm, keeping track of filenamesscreeps.toml for upload optionscopy:main.js and compiled.wasm) from target/ to <destination directory>/<branch name>/<destination directory>/<branch name>/deploy:upload or copy depending on the default_deploy_mode configuration option.check:cargo web --check --target=wasm32-unknown-unknown which is fairly similar to
cargo check.