tauri
tauri copied to clipboard
[feat] Fast hot reloading with dioxus subsecond
Describe the problem
I just saw the dioxus subsecond demo with tauri. This would be really nice to have in tauri as hot reloading in tauri is just rebuilding and relaunching at the moment.
Video
https://github.com/user-attachments/assets/38644db6-3919-421c-982a-b8370ec7a522
Answer to a question asking for code
The ratatui code is here - we just added #[hot] to the tick function and then a way to break the thread lock due to poll. Need to fix it so we can manually unwind the stack.
https://github.com/DioxusLabs/dioxus/blob/fe61fee4caf2c3f625249efb3405a8f8795d6768/packages/subsecond/subsecond-harness/src/tui_demo.rs
The hotpatch magic is here: https://github.com/DioxusLabs/dioxus/blob/fe61fee4caf2c3f625249efb3405a8f8795d6768/packages/subsecond/subsecond-cli/src/main.rs https://github.com/DioxusLabs/dioxus/blob/fe61fee4caf2c3f625249efb3405a8f8795d6768/packages/subsecond/subsecond-cli-support/src/lib.rs
Describe the solution you'd like
Add dixous subsecond into tauri for fast hot reloading.
Alternatives considered
No response
Additional context
No response