[DRAFT]: Tauri addition for a faster Desktop interface #1223
+14,073
−66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Not even remotely ready for merging
Tauri's a web development framework akin to Electron, written in Rust. The advantage over Electron lies in the direct linking to WebKit / whichever OS web engine is present. No need to bundle Chromium with a build of Electron. I converted all of the Electron code to Tauri, just to see if it'd save load times.
@debanjum , core stats: desktop app that loads immediately, with cross-platform bindings, and no Chrome bundle with the desktop app. Super quick. Way less memory used compared to Electron.
I simulated the delay you'd see in the main app, to see the icon load for testing parity. Just delete the 800 millisecond delay line to see an immediate load. (Search for 800, you'll see it).
Probably...90% parity. And the code quality's...okay. But it can be tightened up.
Under
src/interface/desktop
, go tosrc-tauri
and runRUST_BACKTRACE=1 RUST_LOG=tauri=trace cargo tauri dev --no-watch
.Feel free to use any part of this that's useful!