DioxusLabs / DioxusLabs/dioxus
dioxus 0.7 | WASM Splitting
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
Dear all,
I would like to understand how to use WASM Split feature and play with it to evaluate how to use it in a medium or large project. Currently, I haven't found any documentation or example.
Tried in [this](https://github.com/dxps/dioxus_playground/tree/main/dioxus_07_hotdog) ([tutorial](https://dioxuslabs.com/learn/0.7/tutorial/new_app) based) project and the build crashes like this:
```shell
โฆ/dioxus_07_hotdog โฏ dx serve --hotpatch --web --wasm-split
16:14:32 [dev] -----------------------------------------------------------------
Serving your app: dioxus_07_hotdog! ๐
โข Press `ctrl+c` to exit the server
โข Press `r` to rebuild the app
โข Press `p` to toggle automatic rebuilds
โข Press `v` to toggle verbose logging
โข Press `/` for more commands and shortcuts
Learn more at https://dioxuslabs.com/learn/0.7/getting_started
----------------------------------------------------------------
16:14:35 [server] [500] /.well-known/appspecific/com.chrome.devtools.json
16:15:09 [dev] Thread tokio-runtime-worker panicked at packages/wasm-split/wasm-split-cli/src/lib.rs:1248:17:
assertion failed: reloc_range.end <= range.end
16:15:09 [dev] Build failed: Build panicked! JoinError::Panic(Id(40), "assertion failed: reloc_range.end <= range.end", ...)
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ /:more โฎ
โ App: โโโโโโโโโโโโโโโโโโโโโโโโโโ โ Platform: Web + fullstack โ
โ Server: โโโโโโโโโโโโโโโโโโโโโโโโโโ โ App features: ["web"] โ
โ Status: Failed Serving at: http://127.0.0.1:8080 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
```
**Steps To Reproduce**
Use `dx serve --hotpatch --web --wasm-split`.
**Environment:**
- Dioxus version: v0.7.2
- Rust version: 1.91.1
- OS info: macOS 26.1
- App platform: web
Thanks!
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with `dx serve --hotpatch --web --wasm-split` using the reported Dioxus 0.7.2 web setup. Start at packages/wasm-split/wasm-split-cli/src/lib.rs:1248 and inspect the assertion involving reloc_range and range. Done means the command no longer panics and WASM splitting can build the example project.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, wasm
- Domain
- build-system, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 30/100