Skip to content

jldec/wasm-worker

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

wasm-worker

Demo project to accompany the blogpost Calling Rust from a Cloudflare Worker.

Required tools

Configure and build

Login to your Cloudflare account, and edit wrangler.toml to set your own account_id. Values for zone_id and route are only needed if you want to deploy on your own domain.

Build and run locally

wrangler dev

Build and publish to cloudflare

wrangler publish

Dependencies

Template

This repo was originally created using wrangler generate wasm-worker -t rust which copied rustwasm-worker-template.

  • Removed unused files: .appveyor.yml, .travis.yml, .cargo-ok
  • Removed worker/metadata_wasm.json - no longer used by wrangler
  • Removed optional libraries console_error_panic_hook, wee_alloc, and cfg-if
  • Updated version of wasm-bindgen
  • Filled in description, license, and repository in Cargo.toml
  • Added Cargo.lock to .gitignore
  • Rewrote the README

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published