Crates.io | rust-worker-build |
lib.rs | rust-worker-build |
version | 0.0.2 |
source | src |
created_at | 2021-09-01 17:30:39.847914 |
updated_at | 2021-09-01 17:41:58.279581 |
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/rust-worker-build |
max_upload_size | |
id | 445662 |
size | 17,760 |
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"]