Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for bindgen 0.2.93, deprecating cargo-screeps #533

Merged
merged 9 commits into from
Aug 27, 2024

Conversation

shanemadden
Copy link
Collaborator

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.

@shanemadden shanemadden merged commit 61ce820 into rustyscreeps:main Aug 27, 2024
2 checks passed
@shanemadden shanemadden deleted the babel branch August 27, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant