xtuc / rustwasm-worker-template

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ‘·β€β™€οΈπŸ¦€πŸ•ΈοΈ rustwasm-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 cargo generate to Clone this Template

Learn more about cargo generate here.

cargo generate --git https://github.com/ashleygwilliams/rustwasm-worker-template.git --name wasm-worker
cd wasm-worker

πŸ› οΈ Build with wasm-pack build

wasm-pack build

πŸ”¬ Test in Headless Browsers with wasm-pack test

wasm-pack test --headless --firefox

About

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

License:Apache License 2.0


Languages

Language:Rust 79.4%Language:JavaScript 20.6%