Using WebAssembly with Rust
Learn how to compile Rust to WebAssembly with this comprehensive course. Explore communication and interoperability between Rust and JavaScript, set up projects, debug modules, and more. Get ready for primetime!
Many languages work on a compilation story to WebAssembly, but Rust is already ready for primetime. Why?
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.
Course Content
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
User Reviews
Be the first to review “Using WebAssembly with Rust”
You must be logged in to post a review.
There are no reviews yet.