#cloudflare-workers #worker #build #serverless #command

app worker-build

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

13 releases

0.1.2 Dec 11, 2024
0.1.1 Nov 19, 2024
0.1.0 Apr 28, 2024
0.0.10 Jul 25, 2023
0.0.3 Nov 5, 2021

#24 in WebAssembly

Download history 1030/week @ 2024-11-21 900/week @ 2024-11-28 1090/week @ 2024-12-05 1035/week @ 2024-12-12 645/week @ 2024-12-19 615/week @ 2024-12-26 636/week @ 2025-01-02 1123/week @ 2025-01-09 1037/week @ 2025-01-16 778/week @ 2025-01-23 1140/week @ 2025-01-30 1763/week @ 2025-02-06 1252/week @ 2025-02-13 946/week @ 2025-02-20 956/week @ 2025-02-27 1242/week @ 2025-03-06

5,092 downloads per month

Apache-2.0

36KB
577 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

~21–35MB
~563K SLoC