#cloudflare #worker #webassembly #serverless #cargo #wasm-pack #workers

app worker-build2

This is a tool to be used as a custom build command for a Cloudflare Workers workers-rs project

3 releases

0.0.10 Jan 7, 2023
0.0.9 Dec 31, 2022
0.0.8 Dec 31, 2022

#715 in WebAssembly

Apache-2.0

16KB
296 lines

worker-build

This is a tool to be used as a custom build command for a Cloudflare Workers project.

# wrangler.toml
# ...

[build]
command = "cargo install -q worker-build && worker-build --release"

[build.upload]
dir    = "build/worker"
format = "modules"
main   = "./shim.mjs"

[[build.upload.rules]]
globs = ["**/*.wasm"]
type  = "CompiledWasm"

Dependencies

~6–19MB
~262K SLoC