-
Book Overview & Buying
-
Table Of Contents
Rust Web Programming - Third Edition
By :
You have probably heard about WebAssembly (WASM). At the time of writing this book, the WASM ecosystem is still in the early rapid development phases, where APIs get outdated quickly, and groups trying out a new approach cease to exist but have remnants of their approach throughout the internet. This can lead to frustration as you burn hours trying to figure out what API does what. However, the promise of compile once and run anywhere, including the browser, is a clear advantage, so it makes sense to understand and get comfortable with WASM.
In this chapter, we are going to keep the interactions with APIs to a minimum and focus on concepts around serving WASM modules to the frontend to be loaded and used in the browser. We are also going to explore directly interacting with the raw memory addresses in WASM so we can transfer complex data types across the WASM boundary, and we are going to load WASM binaries using Rust to also interact...