Summary
In this chapter, we've done a lot. We've written our first WebAssembly app using Rust, moving from "Hello World" to drawing in the browser with HTML Canvas. You've added crates, run a development server, and interacted with the DOM. You've learned a lot about interacting with the browser, including the following:
- Creating the main entry point with
#[wasm_bindgen(start)]
- Translating JavaScript code to Rust code
- Dealing with crates that compile to JavaScript
You've also been introduced to HTML Canvas. Frankly, it's been a bit of a whirlwind, so don't worry if some information flew over your head, as we'll cover many of these topics again – including in the next chapter, where we'll start drawing sprites.