#cloudflare-workers #worker #build #command #wasm #workers-rs

app worker-plus-build

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

2 releases

0.0.9 Jan 6, 2023
0.0.8 Dec 31, 2022

#24 in #cloudflare-workers

29 downloads per month

Apache-2.0

15KB
261 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

~4–15MB
~205K SLoC