rustyscreeps / screeps-game-api

Typed bindings to the Screeps in-game API for WASM Rust AIs
MIT License
138 stars 44 forks source link

Update for bindgen 0.2.93, deprecating cargo-screeps #533

Closed shanemadden closed 3 weeks ago

shanemadden commented 1 month ago

As of 0.2.93, the wasm-bindgen generated code for string enums uses the ?? operator, which does not parse on node 10/12.

I'm proposing deprecating cargo-screeps (at least for use with world; arena still using it for the moment) and moving to javascript-based tooling:

This will necessitate installing npm and node packages in order to work with a rust bot, as well as cargo - this isn't ideal, but the breadth of tooling we'd need to maintain to continue to keep the toolchain completely native has become too much to keep up with. This allows us to keep things more easily maintained going forward.