A template for kick starting a Cloudflare worker project using
This template is designed for compiling Rust libraries into WebAssembly and publishing the resulting worker to Cloudflare's worker infrastructure.
🔋 Batteries Included
console_error_panic_hookfor logging panic messages to the developer console.
wee_alloc, an allocator optimized for small code size.
wrangler generate to Clone this Template
wrangler generate wasm-worker https://github.com/cloudflare/rustwasm-worker-template.git cd wasm-worker
🛠️ Build with
🔬 Test in Headless Browsers with
wasm-pack test --headless --firefox