3 ms·
Tauri shines when you want to have your business logic written in rust, and/or your app bundled as a desktop application that renders using the platforms built-
by orthecreedence 4y ago
Tauri shines when you want to have your business logic written in rust, and/or your app bundled as a desktop application that renders using the platforms built-in browser (meaning, you can use a rust logic core with a web-based UI). For many (including me), this is a winning combination. Granted, you can embed rust in Flutter/Dart as well: https://cjycode.com/flutter_rust_bridge/index.html https://cjycode.com/flutter_rust_bridge/index.html.
Effectively, Tauri is like Electron, but bundles the ability to call into Rust land (if you want/need that) and uses the operating system's browser instead of bundling one. The idea is that the apps in Tauri are a lot smaller in mb and use a lot less memory than Electron apps. The con is, of course, you now have to deal with rendering/runtime discrepancies between the different platform browsers. If you're fine with this, and especially if you want to embed rust in your app, go with Tauri. If you want an easier dev experience, don't need to bundle rust (you can but you'll be compiling/loading shared libs), and the bundle size and memory usage isn't a huge concern, go with Electron.
As far as Flutter vs Web tech, that's a whole different question. I've used Flutter here and there and liked it (although I hate Dart) but I really question its long-term staying power. I wonder about accessibility too...can anyone who is more familiar with Flutter way in? Google also has a fascination with killing projects, even ones where "they wouldn't possible kill that" so if you have the time/resources, I'd hedge my bets and learn web tech as well...even knowing vanilla JS/HTML/CSS can get you going pretty far.
So if you've made a bet on Flutter and put a lot into it, I'd say keep going...I wouldn't change everything just yet. But keep the options open and keep exploring too.
As far as web frameworks, I don't think you can go wrong picking one of React, Vue, or Svelte and really investing some time into learning it.