-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
tauri dev
is incredibly slow
#8920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Huh, if the change is made to the UI the interface reloads instantly. It's only backend changes that take so long. That makes a bit more sense but is still problematic. |
Running |
This is something related to Rust and its incremental compilation, it shouldn't recompile your dependencies unless necessary. Anyways, there is nothing we can do since this seems like a Rust issue. |
If you are using rust-analyzer on VS Code, try using separate target directory for rust-analyzer and tauri.
{
"rust-analyzer.server.extraEnv": {
"CARGO_TARGET_DIR": "${workspaceFolder}/src-tauri/target/analyzer"
},
"rust-analyzer.cargo.targetDir": "${workspaceFolder}/src-tauri/target/analyzer"
} |
I encountered the same problem. On the M2 Max, every time I modify the Rust code, it blocks and compiles for more than 30 seconds. I don't know why the created template project has issues, but obviously, this is problematic. Kapture.2025-04-25.at.15.42.38.mp4 |
Describe the bug
When running
tauri dev
the app takes minutes to launch, and a single change to a file forces it to start over, seemingly from scratch. This happens when runningyarn tauri dev
in the unchanged result ofyarn create tauri-app
. Around 300 rust libraries seem to be getting compiled every time a change is made.Reproduction
Expected behavior
Interface loads quickly and refreshes quickly when files are changed.
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: