I know it's complicated (because the documentation states so), but I'm wondering how to go from Rust code to running WebAssembly code loaded from my Rocket server with as few tools as possible. I can go with all the bells and whistles once I understand the process, but first I would like to manually do something like:
- Compile Rust code to wasm
- Copy the results to my server
Just to see what's involved, without running more tools than I really need to (i.e. no npm, do I really need wasm-bindgen, etc?).
Anyone know of any such tutorials?
Edit: Ok, so wasm-bindgen looks like it's more or less required if one wants to keep one's sanity -- but I don't want to have to involve npm (at least, not yet).