Replies: 1 comment 1 reply
-
I just tested this on Windows on stable rust with the nightly and stable version of rust analyzer and builds with and without the target set were around 4-5s for a hello world example. That does sound like a issue with caching builds (a full rebuild for me takes ~30s). Maybe you on a different platform, version of rust, or version of rust analyzer? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions