Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Using WebAssembly with Rust

via egghead.io

Overview

Many languages work on a compilation story to WebAssembly, but Rust is already ready for primetime. Why?
Rust is a stable language and great replacement for C and C++.
Due to the reference and borrowing concept, Rust doesn’t need a Garbage Collector and can be used for a production-ready WebAssembly project.
The Rust/Wasm team has built some sophisticated tooling for straightforward interoperability between Rust and JavaScript.
This course gives you the tools to compile to WebAssembly with Rust. Over 11 lessons, we’ll set up a project and explore various paths of communication and interoperability between Rust and JavaScript.

Syllabus

  • Course Overview: Using WebAssembly with Rust
  • Setup Rust for WebAssembly
  • Load a WebAssembly Function Written in Rust and Invoke it from JavaScript
  • Pass a JavaScript Function to WebAssembly and Invoke it from Rust
  • Set up wasm-bindgen for easy Rust/JavaScript Interoperability
  • Create a New Rust/Webpack Project using the rust-webpack Template
  • Debug a WebAssembly Module Written in Rust using console.log
  • Access WebAssembly Memory Directly from JavaScript
  • Use the js-sys Crate to Invoke Global APIs Available in Any JavaScript Environment
  • Create and Publish a NPM Package Containing Rust Generated WebAssembly using wasm-pack
  • Run WebAssembly in Node.js using the node-loader

Taught by

Nik Graf

Reviews

5.0 rating, based on 1 Class Central review

4.1 rating at egghead.io based on 165 ratings

Start your review of Using WebAssembly with Rust

  • Profile image for Ram Prasad.M
    Ram Prasad.M
    I recently completed the WebAssembly (Wasm) course, and it has been a transformative learning experience. The course provided a deep dive into the world of Wasm, covering its principles, applications, and practical implementation. The instructors de…

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.