8 Injecting Rust in the Frontend with WASM
Before you begin: Join our book community on Discord
Give your feedback straight to the author himself and chat to other early readers on our Discord server (find the "rust-web-programming-3e" channel under EARLY ACCESS SUBSCRIPTION).
You have probably heard about WASM. However, 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...