You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.3 KiB
1.3 KiB
+++ title = "[TRIAGE] Cloudflare Workers WASM size limit — free tier 1MB limit may require paid plan for Rust binary" priority = 9 status = "todo" ticket_type = "task" dependencies = ["f3dc74"] +++
This is a triage decision ticket. It must be resolved before dependent implementation tickets can proceed. Cloudflare Workers WASM size limit: the free tier has a 1MB Worker script size limit. A Rust binary compiled for workers-rs may exceed this. Does this project require a paid Workers plan? 1. **Paid Workers plan** — removes the 1MB limit ($5/month). Simplest solution. 2. **Optimise binary size** — use `opt-level = "z"`, `lto = true`, `strip = true`, `wasm-opt`, and minimise dependencies. May bring the binary under 1MB. 3. **Split the Worker** — serve static assets from Pages and keep the Worker API-only (fewer dependencies). 1. Research the options above and choose the best approach for this project. 2. Check the compiled `api` binary size with `trunk build --release` and `ls -lh`. Update the infra plan accordingly. 3. Mark this ticket done with a note on the chosen approach in the body or a comment. `chore(quotesdb): resolve triage — cloudflare-workers-wasm-size-limit-free-tier-1mb-limit-may-r`