fix(wasm): gate wasm32-only imports behind cfg, add binaryen wasm-opt pass
Build and Deploy / build-and-push (push) Failing after 1m12s
Build and Deploy / build-and-push (push) Failing after 1m12s
- Gate `Startup` and `user_theme_dir` imports in theme/registry.rs behind `#[cfg(not(target_arch = "wasm32"))]` — they are only used in the non-wasm code path, eliminating two unused-import warnings in the WASM release build. - Rebuild canvas_bg.wasm and solitaire_wasm_bg.wasm with wasm-opt -Oz (binaryen v129); canvas_bg.wasm drops from 57 MB → 30 MB. - Add solitaire_web/Cargo.toml stub to server Dockerfile so `cargo fetch --locked` resolves all workspace members. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Binary file not shown.
Reference in New Issue
Block a user