Cloudflare brings native Rust and Tokio apps to Workers via new Emscripten target for wasm-bindgen
Cloudflare Blog · rss · 2026-09-28
Cloudflare announced the first public experimental preview of the wasm32-unknown-emscripten Rust compiler target for wasm-bindgen, enabling native Rust code — including Tokio-based apps — to run on Workers.
- Toolchain integration: Google's Portable Toolchains team initiated the work over a year ago; Emscripten now drives the build while wasm-bindgen emits embeddable JS bindings, resolving the conflict where both tools claimed control of Wasm loading and JS generation.
- Tokio support: Workers are single-threaded inside a JS event loop, clashing with Tokio's blocking semantics. Cloudflare contributed patchsets supporting both JSPI (suspensible Wasm stacks) and event-loop runtime integration; the first target patch has landed upstream in Tokio.
- Demo: a native Rust Minecraft server (Pumpkin) runs in a Durable Object with real TCP sockets via Tokio.
- Most Rust libraries work out of the box; libc, socket2 and Mio needed minor patches. Example apps are available to try today.
More from coding & agent
- Google Research open-sources PaperOrchestra, a multi-agent framework for writing AI papers — google-research · 2026-11-16
- ffmpeg-skill gives coding agents local video editing via 42 FFmpeg tools and MCP — kajisho5 · 2026-11-16
- Agents Now Reply to Slack Messages on Their Own, Resolving a Prod Incident Ghost-to-Ghost — iamrobotbear · 2026-11-16
- Engineer's Interview Prep Method: Use Claude to Find Which Answers Undersell Your AI Work — brandon_galang · 2026-11-16
- DeepSeek open-sources its app frontend "chat-demo", already at 3.9k stars — NielsRogge · 2026-11-16
- lemire: AI's real impact on coding is expanding the engineer's 'cognitive radius', not speed — lemire · 2026-11-16