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:
rollup for bundling
babel as a rollup plugin providing the necessary translation layer
node-screeps-api for communication with server API
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.
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:
rollup
for bundlingbabel
as a rollup plugin providing the necessary translation layernode-screeps-api
for communication with server APIThis will necessitate installing
npm
and node packages in order to work with a rust bot, as well ascargo
- 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.