# rustwasm-worker-template **Repository Path**: mirrors_xtuc/rustwasm-worker-template ## Basic Information - **Project Name**: rustwasm-worker-template - **Description**: A template for kick starting a Cloudflare worker project using wasm-pack. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # πŸ‘·β€β™€οΈπŸ¦€πŸ•ΈοΈ `rustwasm-worker-template` A template for kick starting a Cloudflare worker project using [`wasm-pack`](https://github.com/rustwasm/wasm-pack). This template is designed for compiling Rust libraries into WebAssembly and publishing the resulting worker to Cloudflare's worker infrastructure. ## πŸ”‹ Batteries Included * [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating between WebAssembly and JavaScript. * [`console_error_panic_hook`](https://github.com/rustwasm/console_error_panic_hook) for logging panic messages to the developer console. * [`wee_alloc`](https://github.com/rustwasm/wee_alloc), an allocator optimized for small code size. ## 🚴 Usage ### πŸ‘ Use `cargo generate` to Clone this Template [Learn more about `cargo generate` here.](https://github.com/ashleygwilliams/cargo-generate) ``` 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 ```