fix(web): gate boot() to native so the wasm build compiles

The clap CLI work made boot() read crate::cli, but cli is cfg'd out on
wasm (the web build takes no args), so the wasm target failed to compile.
boot() is only used by the native iced::daemon run(); the web build boots
via boot_web(). Gate boot() with cfg(not(wasm32)) to match.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 4.8 committed 2026-06-20 14:27:51 +03:00
1 parent 79bb1d67b1
commit 65369f53cb
1 file changed
+3 -1
+3 -1
View File
@@ -1811,7 +1811,9 @@ impl OpenCADStudio {
}
/// Boot function for `iced::daemon`: returns initial state plus a task that
/// opens the primary application window.
/// opens the primary application window. Native only — the web build uses
/// [`Self::boot_web`].
#[cfg(not(target_arch = "wasm32"))]
fn boot() -> (Self, Task<Message>) {
use helpers::build_window_icon;
// Silently (re)register this binary as a .dwg/.dxf handler so it appears