You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by pickfire April 9, 2023
I noticed if I did not specify wasm32-unknown-unknown and I use dioxus serve --hot-reload with rust-analyzer running in the terminal, it needs a full build every time and the incremental build is very slow.
But if I add the wasm target to cargo config in .cargo/config, then it became very fast even on non-rsx changes (from ~48s to ~2.5s). Maybe because there are some issues with caching for rust-analyzer?
This issue does not effect windows or mac, but there have been other reports of the same issue on discord about hot reloading doing a full rebuild on linux with rust analyzer
The text was updated successfully, but these errors were encountered:
I manually added that to my cargo config (it seemed the easiest way at the time I could get syntax highlighting for web specific stuff in vscode), and I noticed it breaks dx serve --platform desktop, giving "I/O Error: Exec format error (os error 8)" (I think because it compiled for wasm).
I think thats a bug in dx serve : it seems like if you explicitly select desktop, it probably shouldn't build wasm.
On the bright side, with the great changes in 0.5, I no longer have significant wasm specific code and use desktop for debugging, so I'm just going to remove that from my cargo.toml.
Discussed in #947
Originally posted by pickfire April 9, 2023
I noticed if I did not specify
wasm32-unknown-unknown
and I usedioxus serve --hot-reload
withrust-analyzer
running in the terminal, it needs a full build every time and the incremental build is very slow.But if I add the wasm target to cargo config in
.cargo/config
, then it became very fast even on non-rsx changes (from ~48s to ~2.5s). Maybe because there are some issues with caching for rust-analyzer?Maybe we can suggest adding that to https://dioxuslabs.com/docs/0.3/guide/en/getting_started/hot_reload.html if web is used?
This issue does not effect windows or mac, but there have been other reports of the same issue on discord about hot reloading doing a full rebuild on linux with rust analyzer
The text was updated successfully, but these errors were encountered: