41 releases (23 breaking)

new 0.23.0 Apr 9, 2025
0.22.0 Aug 27, 2024
0.21.3 Aug 15, 2024
0.21.1 Jun 28, 2024
0.0.9 Mar 20, 2018

#53 in WebAssembly

Download history 8/week @ 2024-12-22 11/week @ 2024-12-29 5/week @ 2025-01-05 9/week @ 2025-01-12 12/week @ 2025-01-19 7/week @ 2025-01-26 22/week @ 2025-02-02 14/week @ 2025-02-09 23/week @ 2025-02-16 17/week @ 2025-02-23 27/week @ 2025-03-02 7/week @ 2025-03-09 3/week @ 2025-03-16 5/week @ 2025-03-23 3/week @ 2025-03-30 134/week @ 2025-04-06

145 downloads per month
Used in 8 crates

MIT license

1MB
17K SLoC

screeps-game-api

Build Status crates.io version badge dependency status docs.rs version badge

Rusty Screeps Logo

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

Also the homepage for tools relating to writing Screeps AIs in Rust.

screeps-game-api is a Rust binding to the JavaScript APIs for programs compiled to WASM using wasm-pack.

Please see the screeps-starter-rust example project for an example with instructructions for getting started, or the docs for a detailed API reference.

Writing Screeps code in Rust can be nice, but it can also be annoying. If you have tips, tricks, or other things you'd like to share, make an issue! We need to write more documentation, and if we have enough ideas, we can start an mdbook for this repository.

If you need help or want to share feedback, feel free to open an issue or come say "Hi!" on the official Screeps Discord in the #rust channel!

Dependencies

~1.5–2.8MB
~52K SLoC