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
Hi, I'm using Tauri v2 for my app, and I noticed that the rebuilding is triggered frequently, every time I add something like a folder or some files to the /src-tauri directory, Tauri will trigger the rebuild, even if these changes are not affecting the source tree.
Another problem is that if you change a lot of codes, Tauri will start multiple building processes, which will waste a lot of time waiting for locks on the source directory to be released. Sometimes there could be a 3 ~ 5 minutes lag due to lock contention between Cargo processes.
Maybe the rebuilding process should be triggered when the source tree changes rather than when the file changes in the directory. Just like Vite HMR, it only updates when the source tree changed.
P.S. I know we have .taurignore file to stop some files from triggering the rebuild, the problem is that not all the things should be ignored. For example when you create some rust modules that will add to source tree later.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm using Tauri v2 for my app, and I noticed that the rebuilding is triggered frequently, every time I add something like a folder or some files to the /src-tauri directory, Tauri will trigger the rebuild, even if these changes are not affecting the source tree.
Another problem is that if you change a lot of codes, Tauri will start multiple building processes, which will waste a lot of time waiting for locks on the source directory to be released. Sometimes there could be a 3 ~ 5 minutes lag due to lock contention between Cargo processes.
Maybe the rebuilding process should be triggered when the source tree changes rather than when the file changes in the directory. Just like Vite HMR, it only updates when the source tree changed.
P.S. I know we have
.taurignore
file to stop some files from triggering the rebuild, the problem is that not all the things should be ignored. For example when you create some rust modules that will add to source tree later.Beta Was this translation helpful? Give feedback.
All reactions