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

yanked rust-worker-build

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

0.0.2 Sep 1, 2021
0.0.1 Sep 1, 2021

#41 in #cloudflare-workers

Apache-2.0

8KB
155 lines

rust-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 rust-worker-build && rust-worker-build --release"

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

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

Dependencies

~125KB