#cloudflare-workers #worker #command #wasm

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

#21 in #cloudflare-workers

30 downloads per month

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–18MB
~257K SLoC