From cdbdcce8c9d7055aac83cd6c0658162482a261cd Mon Sep 17 00:00:00 2001 From: Orual Date: Mon, 22 Dec 2025 19:53:05 -0500 Subject: [PATCH] tried out bundle splitting again. closer, but no dice --- Cargo.toml | 3 +++ crates/weaver-app/Cargo.toml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 24c1b4f..2e31f2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -80,15 +80,18 @@ strip = "symbols" [profile.wasm-dev] inherits = "dev" debug = true +lto = true [profile.server-dev] inherits = "dev" debug = true +lto = true [profile.server-release] inherits = "release" opt-level = 2 +lto = true [profile.android-dev] inherits = "dev" diff --git a/crates/weaver-app/Cargo.toml b/crates/weaver-app/Cargo.toml index 61e2dff..9d6dfe7 100644 --- a/crates/weaver-app/Cargo.toml +++ b/crates/weaver-app/Cargo.toml @@ -28,6 +28,10 @@ default = ["web", "fullstack-server", "use-index"] fullstack-server = ["dioxus/fullstack"] # Enable pckt/site.standard document rendering pckt = ["weaver-renderer/pckt"] +# Route-based WASM bundle splitting. Currently broken: causes server/client serialization +# mismatches (bool vs String) in use_server_future, especially in navbar. Possibly related +# to SmolStr niche optimization or type registry getting confused across module boundaries. +# Revisit when dioxus matures this feature. Run with: dx serve --wasm-split wasm-split = ["dioxus/wasm-split"] # Use weaver-index for reads (proxied when authenticated) use-index = ["weaver-common/use-index"] -- knotmirror 0.0.1