mirror of
https://github.com/storytold/figcraft.git
synced 2026-12-03 15:31:21 -05:00
Optimize browser renderer code for the fixed WASM budget
This commit is contained in:
+2
-2
@@ -187,7 +187,7 @@ lto = "thin"
|
||||
codegen-units = 4
|
||||
|
||||
# The browser build only (apps/figcraft-web/index.html: data-cargo-profile). Optimised for size:
|
||||
# packaging/web/package.sh fails a .wasm over 24 MiB (Cloudflare's per-file cap is 25 MiB).
|
||||
# packaging/web/package.sh fails a .wasm over 25 MiB (Cloudflare's per-file cap).
|
||||
# wasm32-unknown-unknown always aborts on panic, so panic = "abort" changes nothing there.
|
||||
[profile.web-release]
|
||||
inherits = "release"
|
||||
@@ -206,7 +206,7 @@ opt-level = 3
|
||||
[profile.web-release.package.tiny-skia-path]
|
||||
opt-level = 3
|
||||
[profile.web-release.package.figcraft-render]
|
||||
opt-level = 3
|
||||
opt-level = "z"
|
||||
|
||||
# Keep the complete egui family and native event bridge on reviewed fork commits.
|
||||
[patch.crates-io]
|
||||
|
||||
Reference in New Issue
Block a user