Supporting native Rust in Workers with the new Emscripten target for wasm-bindgen
- ID
- 29269
- Status
- summarized
- Published
- 28 Sep 2026, 9:00 PM
- Fetched
- 28 Sep 2026, 9:35 PM
- Provider
- Cloudflare Blog
- Category
- infrastructure
- Original URL
- https://blog.cloudflare.com/rust-workers-emscripten-target/
- Source URL
- https://blog.cloudflare.com/rss/
Summary
- Score
- 7.0
- Created
- 28 Sep 2026, 9:35 PM
- Tags
- Audience
- developerssaas_startup_founders
What happened
Cloudflare published the first public experimental preview of first-class support for the Emscripten wasm32-unknown-emscripten target in the wasm-bindgen toolchain, letting native Rust and Tokio-based applications run on Workers. The effort was started by Google over a year ago and later reviewed and supported by the Cloudflare engineers who maintain wasm-bindgen. To demonstrate it, the team got the Rust-native Minecraft server Pumpkin running inside a Durable Object with TCP ingress using real TCP sockets via Tokio; experimental patchsets and example repos are available now (Building Emscripten Rust Workers, running the Tokio async runtime in a Worker, TCP sockets with Emscripten and Tokio).
Why it matters
Emscripten support uses Node.js compatibility flags to virtualize timers, filesystem operations, and sockets on Workers, which is the missing piece if you previously ruled out Workers for a Rust crate that needs std::net, file I/O, or a Tokio runtime. It is pre-release, so treat the patchsets as a prototype path for a Tokio service or a TCP-ingress Durable Object, not a production migration; if you have a Rust service you wanted at the edge but kept on containers because of missing native platform features, this is the moment to spike a port. No Malaysia-specific detail appears in the post, so local relevance is limited to teams already weighing Workers versus container hosting.
Discussion angle
The Pumpkin Minecraft server in a Durable Object shows TCP ingress and real sockets working at the edge — worth asking which of your own container-hosted Rust or Tokio services could move to Workers once this leaves preview, and what the pre-release patchset risk actually looks like in practice.