Crates.io | worker-plus-build |
lib.rs | worker-plus-build |
version | 0.0.9 |
source | src |
created_at | 2022-12-31 09:04:30.253147 |
updated_at | 2023-01-06 12:45:33.443694 |
description | This is a tool to be used as a custom build command for a Cloudflare Workers `workers-rs` project. |
homepage | |
repository | https://github.com/cloudflare/workers-rs/tree/main/worker-build |
max_upload_size | |
id | 748311 |
size | 44,598 |
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"