The Iconify catalog was 41% of the web wasm; ~91% of its bytes are 3700 simple-icons brand logos vs only 0.46 MB for lucide+feather. Split it: embed the core UI sets, load brands at runtime — desktop embeds + serves them (/assets/iconify-catalog-brands.json), web fetches that route at mount and registers via set_brand_catalog. Web wasm 13.7 -> 8.2 MB raw, 4.17 -> 2.18 MB gzip (-48% over the wire); desktop keeps all icons. Brands registered in main() before every native render path (GUI / --render-shots / MCP). |
||
|---|---|---|
| .. | ||
| assets/canvaskit | ||
| pkg-ck | ||
| pkg-webgl | ||
| smoke | ||
| src | ||
| tests | ||
| .gitignore | ||
| Cargo.toml | ||