Underrated gems of Rust & WebAssembly: Errors, Async, I/O
summary
Concrete recipes and results: a Rust library compiles with wasm-bindgen and uses SD panic hooks and wasm-logger to capture panic info and surface usable JS Error objects; async Rust maps to promises via wasm-bindgen-futures so Tokio-style code can run in JS; IO comes from delegating to JavaScript on Cloudflare Workers and calling a D1 sqlite instance, demonstrated by a working query-engine prototype that translates JSON into SQL, runs queries, and returns results.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:13WebAssembly
- 4:19Errors
- 13:21Async functions
- 15:33Synchronous functions
- 16:29WebAssembly IO
- 19:02Async JavaScript
- 22:06Summary
- 23:58Workshop
- 24:28Demo
related talks
30mRust in the Browser for Javascripters:New Frontiers,New Possibilities
20mPractical Tips on DOM and JS APIs from Rust
29mNo free lunch: Limits of WASM as a bridge from Rust to JS
29mRust & JavaScript Interoperability
23mLearnable Programming with Rust
26mJavaScript Won the Web, Rust Is Taking the Critical Path
25mThink About Front-end Web Development with Rust
30mRust and the Web Platform: A Rookie’s Guide
