Registry / other / screeps-game-api

screeps-game-api

JSON →
library0.23.4rscratesunverified

WASM bindings to the in-game Screeps API for Rust.

# Cargo.toml [dependencies] screeps-game-api = "0.23.4"
INSTALL
IMPORT
SIG · SCREEPS-GAME-API
S
screeps-game-api
otherrustv0.23.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Creep
use screeps_game_api::objects::Creep;

Basic usage of the Screeps Game API to interact with a Creep object.

use screeps_game_api::objects::Creep; fn main() { let creep = Creep::new("my_creep"); println!("Creep name: {}", creep.name()); }
Debug
Known issues
gotchaRequires WebAssembly target and wasm-bindgen for compilation.
fix
Ensure you are building with --target wasm32-unknown-unknown and have wasm-bindgen-cli installed.
affects: >=0.0.0
Upgrade
Version history
0.23.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
screeps-game-api — cargo add screeps-game-api · libregistry