Edge Computing with Cloudflare Workers
Announcing support for WASI on Cloudflare Workers

Announcing support for WASI on Cloudflare Workers

7/7/2022 · Ben Yule, Zebulon Piasecki

What this post added

This post introduces experimental support for WASI (WebAssembly System Interface) on Cloudflare Workers and within the wrangler2 tool. It explains the need for WASI to provide a standard system interface for WebAssembly, enabling code written in languages like Rust and C/C++ to run on the edge without language-specific toolchains. The post demonstrates compiling and running POSIX-compliant applications (like 'Hello, world!', 'hexyl', 'swc', and 'zstd') on Workers, showcasing the ability to deploy CLI applications as cloud services. It also provides boilerplate for invoking WASI modules from JavaScript Workers.

Read the original post ↗