Rust to WebAssembly to JavaScript
I wrote a post for SpecTrust's engineering blog on compiling Rust projects to WASM and then making that WASM available in JavaScrpit. In particular, I wrote it to address what I felt like were some substantial holes in the existing documentation, specifically around:
- Building WASM output that can be used by both node and browser projects
- Explicitly spelling out the difference between using WASM with different versions of webpack
- Using WASM in the very common React application context
If you're interested, check out the post here, and the example repository here.
The blog's got an RSS feed, so subscribe if you'd like to see what I and the rest of the engineering team put out in the future!