This uses tooling located at https://github.com/daboross/screeps-in-rust-via-wasm/.
I'd recommend using
cargo-screeps for uploading the code, but it should compile
fine just using
cargo-web provided by the
The documentation is currently a bit sparse. API docs which list functions one can use are located at https://docs.rs/screeps-game-api/.
Almost all crates on https://crates.io/ are usable (only things which interact with OS apis are broken).
# clone: git clone https://github.com/daboross/screeps-starter-rust.git cd screeps-starter-rust rustup override set nightly # cli dependencies: cargo install cargo-screeps cargo install cargo-web # configure for uploading: cp example-screeps.toml screeps.toml nano screeps.toml # build tool: cargo screeps --help