Emitting ES6 Module for `wasm32-unknown-emscripten`

Most people compile to wasm32-unknown-unknown and use wasm-bindgen (typically via wasm-pack) to generate the JavaScript glue code and *.d.ts files for embedding in a web app. I'd suggest having a read through of the Rust and WebAssembly book because it has a nice real-world tutorial.

Last I heard, the wasm32-unknown-emscripten backend isn't really being maintained.

1 Like