I wrote RemGlk-rs in Rust in large part to avoid having to do any manual JSON parsing. I’m also intending to use Serde for autosaves with a binary format rather than JSON. So removing Serde is not something I anticipate considering, it’s really an integral part of the library. But maybe there are ways to optimise how I’m using Serde.
wasm-bindgen isn’t compiled by Emglken, and indeed the Chrono dependencies don’t include it for the emscripten target. That said, I’m not super happy with Chrono and would consider swapping it for something else.
Other than the performance hit from switching between WASM and JS (which would be identical to old versions of Emglken), not really. It will be the first thing I try to reduce file size.
I’m not doing any significant string formatting in RemGlk-rs and have just used format! as a convenience. It might be possible to cut this out.
I think exchanging some generics for dynamic dispatch would likely reduce the file size a lot, though I haven’t investigate the details yet.