Crates.io | worker-build2 |
lib.rs | worker-build2 |
version | 0.0.10 |
source | src |
created_at | 2022-12-31 23:49:23.024756 |
updated_at | 2023-01-07 21:44:48.7651 |
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 | 748614 |
size | 47,110 |
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"