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.
2.2 KiB
2.2 KiB
| title | status | type | priority | created_at | updated_at |
|---|---|---|---|---|---|
| [TRIAGE] Cloudflare Workers WASM size limit — free tier 1MB limit may require paid plan for Rust binary | completed | task | critical | 2026-03-10T23:32:05Z | 2026-03-10T23:32:05Z |
Chosen approach: Free tier + binary size optimisation (no paid plan required).
Rationale:
- The API Worker only handles API routes — no Yew/UI code is bundled into it (UI is on Pages).
- The database layer uses
workers-rsnative D1 bindings (not SQLx) per ticket e8a330 — this eliminates a heavy dependency. - The
Cargo.tomlrelease profile already hasopt-level = "z",lto = true,strip = true,codegen-units = 1. wranglerapplieswasm-optautomatically during deploy, further reducing WASM size.- A simple CRUD API with these optimisations gzips well under 3 MB.
- Verification command:
wrangler deploy --outdir bundled/ --dry-run(showsgzip: X KiB).
Implementation ticket created: see ticket for binary size verification after Cargo.toml dependencies are added (1f5bb5).
If the binary somehow exceeds 3 MB, fallback options are: further dependency pruning, or Workers Paid at $5/month.
`chore(quotesdb): resolve triage — cloudflare-workers-wasm-size-limit-free-tier-1mb-limit-may-r`