The thing that worked for me is using the neat wargo with the rusty web. Unfortunately it is still very barebone, i.e. you can use C ffi function which need to manually declared both in rust and js. I’d prefer using stdweb, but unfortunately, wasm support seems to be broken.
So I agree with you that a comprehensive, up-to-date guide on the wasm is required.
Thank you very much for your links! The Rustyweb link was actually helpful (specifically the library example), and I got a working example!
However, it definitely incomplete or outdated. For starters, it did not recommend the ‘wasm32-unknown-emscripten’ target, instead, it recommends asm. Also, I was unable to get it to work out of the box, I ended up needed to do the following inside my tags. since without the onRuntimeInitialized function, it did not work.