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
We currently use Electron as a framework for the desktop Headlamp application. It has several some downsides such as big installation size and slow startup.
We could instead use Tauri as a replacement for Electron. Since it had 2.0 stable release I think this is a good time to consider migration. So far it seems that it has every feature we would need:
One great thing about Tauri is that you could run code on the frontend that would usually be run on the electron side, for example you could add a menu item right from the frontend. https://tauri.app/learn/system-tray/#listen-to-menu-events
This means we could migrate our current electron logic to frontend without having to deal with Rust.
Pros:
Faster startup time
Small executable
Desktop app logic in the frontend codebase
Cons:
Parts of code that need to be written in Rust which may be not familiar
This migration would take a lot work:
Migrate Menu customization from plugins
Migrate plugin management
Need to rewrite our current electron logic
Need to setup CI for building/bundling from scratch
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
-
We currently use Electron as a framework for the desktop Headlamp application. It has several some downsides such as big installation size and slow startup.
We could instead use Tauri as a replacement for Electron. Since it had 2.0 stable release I think this is a good time to consider migration. So far it seems that it has every feature we would need:
Running backend as a sidecar
https://tauri.app/develop/sidecar/
Communicating with the frontend
https://tauri.app/concept/inter-process-communication/
Security and permissions
https://tauri.app/security/
Customizing menu
https://tauri.app/learn/system-tray/
Running shell commands
https://tauri.app/plugin/shell/
One great thing about Tauri is that you could run code on the frontend that would usually be run on the electron side, for example you could add a menu item right from the frontend.
https://tauri.app/learn/system-tray/#listen-to-menu-events
This means we could migrate our current electron logic to frontend without having to deal with Rust.
Pros:
Cons:
This migration would take a lot work:
Beta Was this translation helpful? Give feedback.
All reactions