rustyscreeps / screeps-starter-rust

Starter Rust AI for Screeps, the JavaScript-based MMO game
MIT License
121 stars 47 forks source link

Would it be possible to update the toolchain? #27

Closed GRASBOCK closed 2 years ago

GRASBOCK commented 2 years ago

I really like this. It works as easy as described. Thank you for sharing this project.

I would like to use more modern extensions in code editors like rust-analyzer for this. Unfortunately I now get red highlights in the main function. mainrs-screeps-ra-complain This didn't seem to happen if I were to remove the rust-toolchain file and change the edition to 2021 in the Cargo.toml, but then I get a warning screeps-rs-fail and later a panic with the message: thread 'main' panicked at 'unknown name section chunk type: 7'

I think this is a good project and it deserves an update. I am however not familiar with updating toolchains, so I might not be able to do it myself.

GRASBOCK commented 2 years ago

There was this problem apparently mentioned already in the past #25 and related #20. So technically my problem is solved.

GRASBOCK commented 2 years ago

There is an issue in the screeps-game-api to move to wasm bindgen which is supposed to fix a lot of such problems