← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

Cloudflare Workers Adds Experimental Emscripten Target Support for Native Rust and Tokio

🔄 Updated 3d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Cloudflare Workers now supports Emscripten `wasm32-unknown-emscripten` target.
  • `wasm-bindgen` toolchain integrates Emscripten for Rust WebAssembly.
  • Enables native Rust and Tokio applications on Workers.
  • Improves library compatibility and virtualizes native platform features.

Emscripten Target Integration

Cloudflare has introduced an experimental preview of support for the Emscripten `wasm32-unknown-emscripten` Rust compiler target within the `wasm-bindgen` open-source toolchain. This integration allows for better execution of native Rust code and Tokio-based applications directly on Cloudflare Workers.

The `wasm-bindgen` toolchain powers Rust-based WebAssembly applications on Cloudflare's V8-based Workers Runtime. The effort to enable the Emscripten target was initiated by Google and further developed by Cloudflare engineers.

Enhanced Capabilities for Rust Workers

This new support significantly improves library compatibility for Rust Workers. Emscripten, an open-source WebAssembly compiler toolchain maintained by Google, facilitates running and bridging native code with the web platform.

It virtualizes platform features such as timers, file system operations, and sockets. Cloudflare Workers can support Emscripten by utilizing its Node.js compilation flags, virtualizing these native features on top of existing Node.js APIs.

Tokio Support and Practical Applications

With this update, Rust code built on Tokio's async runtime ecosystem can now be integrated into JavaScript-based host environments using the Emscripten target. This allows for applications like a Rust-native Minecraft server (Pumpkin) to run inside a Durable Object with TCP ingress, using real TCP sockets via Tokio.

Experimental patchsets and example applications are available, demonstrating how to build Emscripten Rust Workers, run the Tokio async runtime in a Worker, and use TCP Sockets on Workers with Emscripten and Tokio.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~34 min · 27 stories · Oct 02

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Cloudflare announced experimental preview support for the Emscripten `wasm32-unknown-emscripten` Rust compiler target within the `wasm-bindgen` toolchain for Workers. This enables native Rust code, including Tokio-based applications, to run on Cloudflare's platform with improved library compatibility and virtualized native features like TCP sockets.