News / Infrastructure, Cloud & Telecom
Cloudflare and Google Join Forces to Run Native Rust on Workers via WebAssembly Published on 28 September 2026 by Christ-loisele (3 min read)
Cloudflare and Google have collaborated to enable Rust and Tokio applications to run directly on Cloudflare Workers, thanks to Emscripten and wasm-bindgen. This experimental advancement opens possibilities for critical services like TCP servers or asynchronous web applications.
Video: Understanding Conway’s Game of Life in WebAssembly & Rust | Optimizing Performance with wasm-bindgen (Programming Guru, YouTube)
A technical collaboration between Cloudflare and Google
Cloudflare announces an experimental preview enabling native Rust applications, including those using the asynchronous runtime Tokio, to run directly on its Cloudflare Workers platform. This feature relies on integrating the Emscripten tool, combined with wasm-bindgen , to compile Rust code into WebAssembly (Wasm) compatible with Workers constraints.
According to the official Cloudflare blog , this advancement is based on support for the target wasm32-unknown-emscripten in wasm-bindgen, a project initially led by Google over a year ago. Cloudflare engineers then contributed to refining this integration, enabling smooth interoperability between the two tools via the compilation flag -sWASM_BINDGEN.
A native Rust Minecraft server, using real TCP sockets, was successfully executed within a Cloudflare Workers Durable Object, demonstrating the potential for critical applications in a serverless environment.
Logo: WebAssembly (Carlos Baraza, CC0)
Complex Rust applications now compatible with Workers
One of the most striking demonstrations of this collaboration is the successful execution of a native Rust Minecraft server, named Pumpkin, inside a Durable Object of Cloudflare Workers. This server uses real TCP sockets and the Tokio runtime, proving that demanding network performance applications can now be deployed in a serverless environment.
Emscripten plays a key role by virtualizing native operating system functionalities, such as timers, file system operations, or sockets, to adapt them to the web context. Cloudflare Workers supports this virtualization through Node.js compilation flags, while relying on wasm-bindgen to generate optimized and portable JavaScript bindings.
Implications for Rust libraries and critical use cases
While many Rust libraries already work « out of the box » with this configuration, low-level dependencies such as libc , socket2 , or Mio required fixes to support Emscripten’s target_family = unix target. This adaptation reflects the complexity of porting Rust ecosystems to WebAssembly, as well as efforts to standardize these tools.
Google emphasized that this integration aligns with a broader strategy: the company already uses Emscripten to compile C++ codebases into Wasm , and this collaboration with Cloudflare aims to extend this approach to Rust applications. According to engineers Mitch Foley and Yifan Yang , Emscripten remains the primary build engine, while wasm-bindgen generates lighter JavaScript bindings for seamless integration into Cloudflare’s system.
What this changes here
For Beninese businesses, government agencies, or organizations across West Africa using Cloudflare Workers to host lightweight web services, this advancement could simplify deploying critical applications written in Rust. For example, solutions requiring high network performance, such as real-time APIs or monitoring systems, could now be more easily ported to a serverless infrastructure, eliminating the need for costly dedicated servers.
Local developers building Rust tools for sectors like connected health or logistics could also benefit from this compatibility, provided their libraries are Emscripten-compatible. However, the experimental nature of this feature means teams will need to rigorously validate performance and stability before adopting it in production.
Sources