xtuc / wrangler-js-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrangler-js-demo

Warning

Currently, and for expirementation purposes, wrangler-js is its own tool. However, we should make only one tool, which is wrangler. Some merging work is required.

Demos

Golang would also be possible using https://github.com/wasm-tool/golang.

wrangler-js

It uses Webpack to build the project and will run any loaders (c to wasm compiler with the emscripten loader for instance). If Wasm modules were generated during the build, wrangler-js will generate the corresponding Worker metadata.json, do some wiring and publish the worker code.

Usage

Go in the example directories, install dependecies npm i and run wrangler-js.

Don't forget to provide the keys in your environment:

  • CF_ACCOUNT_ID
  • CF_API_KEY
  • CF_ACCOUNT_EMAIL

About


Languages

Language:JavaScript 58.6%Language:Rust 27.3%Language:TypeScript 6.8%Language:C 5.4%Language:WebAssembly 1.9%