/wasm-resizer

Demo app for resizing a PNG image on Cloudflare using their workers.

Primary LanguageRustApache License 2.0Apache-2.0

wasm-resizer

A demo app on how to use Rust with Cloudflare workers to resize a .png image. This is based on the rustwasm-worker-template.

Wasm-worker-template

A template for kick starting a Cloudflare worker project using wasm-pack.

This template is designed for compiling Rust libraries into WebAssembly and publishing the resulting worker to Cloudflare's worker infrastructure.

🔋 Batteries Included

🚴 Usage

🐑 Use wrangler generate to Clone this Template

Learn more about wrangler generate here.

wrangler generate wasm-worker  https://github.com/cloudflare/rustwasm-worker-template.git
cd wasm-worker

🛠️ Build with wasm-pack build

wasm-pack build

🔬 Test in Headless Browsers with wasm-pack test

wasm-pack test --headless --firefox