cloudflare / Rustwasm Worker Template
Licence: other
A template for kick starting a Cloudflare worker project using wasm-pack.
Stars: ✭ 134
Programming Languages
rust
11053 projects
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
-
wasm-bindgen
for communicating between WebAssembly and JavaScript. -
console_error_panic_hook
for logging panic messages to the developer console. -
wee_alloc
, an allocator optimized for small code size.
🚴 Usage
wrangler generate
to Clone this Template
🐑 Use Learn more about wrangler generate
here.
wrangler generate wasm-worker https://github.com/cloudflare/rustwasm-worker-template.git
cd wasm-worker
wasm-pack build
🛠️ Build with wasm-pack build
wasm-pack test
🔬 Test in Headless Browsers with wasm-pack test --headless --firefox
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].