Update JS static globals to use new wasm_bindgen(thread_local)
#538
Labels
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
We're currently having to suppress deprecation warnings https://github.com/rustyscreeps/screeps-game-api/blob/main/src/lib.rs#L99 due to our use of
JsStatic
instead of the newthread_local
method offered by wasm_bindgen for memory'sROOT
as well asROOM_POSITION_PROTOTYPE
/COST_MATRIX_PROTOTYPE
. I spent a few minutes trying to get these variables usable with the new approach and it wasn't immediately obvious due to additional wrapping byLocalKey
- need to work this out then remove the suppression of the deprecation warnings.The text was updated successfully, but these errors were encountered: