rustyscreeps / cargo-screeps

Build tool for deploying Rust WASM code to Screeps game servers
MIT License
25 stars 13 forks source link

Convert from cargo-web to wasm-pack #24

Closed shanemadden closed 2 years ago

shanemadden commented 3 years ago

Based on https://github.com/rustyscreeps/cargo-screeps/pull/23 - switches cargo-screeps from wrapping cargo-web to wasm-pack in preparation for conversion of toolchain from cargo-web+stdweb to wasm-pack+bindgen. See here for usage notes.

hansihe commented 3 years ago

I gave this a go, but it seems to fail on error: error: multiple js files found in [...] for me.

Seems to come from this line: https://github.com/rustyscreeps/cargo-screeps/blob/bindgen/src/build.rs#L59

This makes sense since there is both a _bg.js and a .js file generated by wasm-bindgen.

Does this branch work for you?

Siprj commented 3 years ago

Hey! How is this draft doing? How can I help to push it forward? :)

cemlyn007 commented 2 years ago

Is there any way I can help?