Goodbye Electron and JavaScript. Hello Tauri and Rust!

  Рет қаралды 8,795

Flo Woelki

Flo Woelki

Күн бұрын

Electron is old, underperforming, and bulky. That's why Tauri arrived! Feel free to also check out this video here to learn more about the `move` keyword: • Smarter Programming in...
📝 Description
In this video, we explore the world of Tauri, a game-changer for building Desktop applications. We discuss the limitations of Electron and why Tauri, built in Rust, offers a faster, more secure alternative with a significantly smaller binary size and better memory usage. Not only does Tauri allow you to deploy your application to iOS or Android, but it also lets you use JavaScript or a web framework like Leptos. Join us as we walk through the process of setting up a Tauri application and delve into how it could be the perfect fit for your next project.
⏳ Timestamps:
00:00 - Introduction
00:35 - Tauri vs Electron
03:16 - Create Tauri Application for iOS, Android, Desktop, and the Web
09:24 - Outro
👋 Hey there!
If you are new to this channel: Hey 👋 my name is Flo and I am a professional software engineer with a passion for coding in Golang, TypeScript, JavaScript, and Rust. This channel is where I share that passion and dive into the exciting world of software engineering. Plus, I love using Emojis and paper-based animations (so have a look for that, if you want to find my videos).
📨 Support and Connect!
Buy me a coffee: www.buymeacoffee.com/florianw...
Become a member: / @flowoelki
Discord: / discord
Instagram: / flowydev
LinkedIn: / florian-woelki
TikTok: / florianwoelki
GitHub: github.com/FlorianWoelki
#rust #electron #tauri

Пікірлер: 43
@Slate245Ivanovo
@Slate245Ivanovo Ай бұрын
The thing with React Native is that it uses native elements on each respective platform. Sometimes, it's good (native buttons, loading indicators, modals), sometimes not so good (having to dig into native code to fix inconsistencies). Tauri doesn't offer that. Just a plain wrapper for a webview with your frontend and system bindings in Rust. It's only good if you throw nativity out of the window and want to control the ui 100%
@FloWoelki
@FloWoelki Ай бұрын
good point! obviously, Tauri has some native features as well through the Rust bindings, and you can also develop your own if you want to. but, let's see where the future goes. ultimately, the choice depends on your project's needs and priorities.
@filipniklas
@filipniklas Ай бұрын
Cool! Nicely delivered! Once I make my way through the Rust book, I'll be giving this a try!
@FloWoelki
@FloWoelki Ай бұрын
thank you and awesome stuff! feel free to reach out to me, if you have any questions about Rust (i btw. also have videos about Rust, so feel free to check them out ;)). also, if you've got ideas or want to see some detailed explanation of something Rust-related, feel free to post that as well :)
@filipniklas
@filipniklas Ай бұрын
@@FloWoelki Appreciate the reply! I'll be sure to check out your other videos! As for possible ideas, how about a webhook server for Stripe in Rust? Or deploying Rust web servers (so like how the pipeline and workflows would work for that).
@FloWoelki
@FloWoelki Ай бұрын
@@filipniklas that's awesome. lovely ideas, thank you! I've written them down :)
@Dominik-K
@Dominik-K Ай бұрын
Thanks a bunch for this video, really well put together. I'll definitely have a look at this
@FloWoelki
@FloWoelki Ай бұрын
thank you for the lovely feedback! awesome stuff :)
@xorlop
@xorlop Ай бұрын
I am curious what your thoughts are with Dioxus? I think Dioxus uses Tauri as the desktop renderer or something but not sure. Rust noob here
@FloWoelki
@FloWoelki Ай бұрын
beginners are always welcome! I've honestly never tried Dioxus before, but I've seen it before. the desktop version is built on Tauri yes. but, I don't think that a lot of JS devs will switch to Rust entirely because it seems too scary :D but it's just great that Rust has all of these cool projects out there trying to make the future more performant ^^
@FloWoelki
@FloWoelki Ай бұрын
@@anonymousalexander6005 that's pretty cool! yeah WebView and Solid is also great. but, javascript and electron at their current state feel too bloated. I just feel bad when I need to add another node module to my project :D
@NewFoxesHD
@NewFoxesHD Ай бұрын
My issue with Tauri is the lack of support for multiple web views within a single native window.
@FloWoelki
@FloWoelki Ай бұрын
well there is an example of having a multi-web view within a single native window: github.com/tauri-apps/tauri/tree/dev/examples/multiwebview this was the related issue to that example: github.com/tauri-apps/tauri/issues/2975
@WilsakoGaming_Official
@WilsakoGaming_Official Ай бұрын
Tauri still use HTML, JS, and CSS it's just executable file, RAM and others things are smaller and Rust backend makes it have more lower-level access.
@FloWoelki
@FloWoelki Ай бұрын
it's so beautiful, isn't it? 🤗
@maksimmuruev423
@maksimmuruev423 Ай бұрын
@@FloWoelki No its siill crapware.. not the real app as of course electron.. 100mb for 'hello world'.. heh..
@pketh
@pketh Ай бұрын
The place Tauri gets too complex to understand for me is with the security certificates that are required to actually distribute your app on Mac, windows etc. looking forward to the episode you discuss these in
@FloWoelki
@FloWoelki Ай бұрын
i agree with that. but everyone has to go through it. no matter if you develop specifically for iOS/OSX or windows.
@rhysmuir
@rhysmuir Ай бұрын
my issue with tauri, is that tauri it's self is written in rust, but the UI is still JavaScript.
@FloWoelki
@FloWoelki Ай бұрын
you can still feel free to use Rust for the UI. there is no limitation at all 🙌
@ulrich-tonmoy
@ulrich-tonmoy Ай бұрын
i guess Tauri Will compete with React Native than Electron and the use of js in mobile dev is because of the update delay cause of layer of check for apps while with js you can directly update your app for user without waiting for store check unless its native code/binary update(like expo for react native)
@FloWoelki
@FloWoelki Ай бұрын
we'll see, I think GitButler uses Tauri and probably I'll also make a video about building something with Tauri, because it's just magic. especially when you want to use system-specific functionality. that makes sense, yes!
@ulrich-tonmoy
@ulrich-tonmoy Ай бұрын
@@FloWoelki Maybe a code editor or something similar
@FloWoelki
@FloWoelki Ай бұрын
@@ulrich-tonmoy jap that would be a good use case. Or even something similar to Obsidian or Notion.
@ulrich-tonmoy
@ulrich-tonmoy Ай бұрын
@@FloWoelki yep code editor or markdown/rich text editor
@chrisdaman4179
@chrisdaman4179 Ай бұрын
Yeah! Let's take ten times as long to develop an equivalent program that is harder to debug. Rust is such a good idea, and definitely not an elietest fad.
@FloWoelki
@FloWoelki Ай бұрын
hopefully, everyone will notice that :) at least it will hopefully become really popular when the beta is fully released.
@da40au40
@da40au40 Ай бұрын
Javascript is inevitable brother
@FloWoelki
@FloWoelki Ай бұрын
unfortunately yes :D at least for now
@hellelo.5840
@hellelo.5840 Ай бұрын
Well tauri doesn't support custom protocols registration 😅, and they can't implement it
@FloWoelki
@FloWoelki Ай бұрын
maybe there will be an option in the future? :D
@_zetrax
@_zetrax Ай бұрын
let's be honest developing Android & IOS apps for large scale production apps is going to be a hassle
@FloWoelki
@FloWoelki Ай бұрын
kind of agree. but if you want to have some specific native features, you have to develop for these platforms. but having just one codebase for "everything" is so nice, especially for smaller teams.
@Dominik-K
@Dominik-K Ай бұрын
I like that simple apps can still be augmented via this mechanism. Though I've had some good experiences with just PWA's as well, and I personally prefer those for simple, small apps
@soldierbirb
@soldierbirb Ай бұрын
Just use imgui or raylib already...
@FloWoelki
@FloWoelki Ай бұрын
these are valid alternatives, yes :)
@oldm9228
@oldm9228 Ай бұрын
New technologies suck. I like old technologies.
@FloWoelki
@FloWoelki Ай бұрын
let's go! 😄 i also have a Nokia 3109 lol
@powermyapps
@powermyapps Ай бұрын
my dad is 68, he is still using 20 yo Nokia phone. You guys should meet!
@MarkusBurrer
@MarkusBurrer Ай бұрын
You mean knapping a knife from Flintstone?
@FloWoelki
@FloWoelki Ай бұрын
that's the spirit haha
@morgandid
@morgandid Ай бұрын
We Retro Squad 😎
@d1namis
@d1namis Ай бұрын
This video title should be: goodbye web spyware that come with Electron apps, hello NSA cyber weapons + web spyware that you install on your system. Rust community in 2024 not just toxic, but also idle in brain department. You can use Ada safe code principles with any language, you don't need Rust. You can have memory safety even with pure Javascript,, that you will have in your project anyway with Tauri, you don't need Rust for that. Also you can have same thing that Tauri promise with Ultralight, it had for a long time with stable LTS version with a lot wider range of languages and implementations.
Why JavaScript Devs are Switching to Rust in 2024
10:35
warpdotdev
Рет қаралды 240 М.
Build Blazing Fast Backends with Rust & Actix Web
18:28
Flo Woelki
Рет қаралды 4,2 М.
OMG 😨 Era o tênis dela 🤬
00:19
Polar em português
Рет қаралды 3,3 МЛН
Bro be careful where you drop the ball  #learnfromkhaby  #comedy
00:19
Khaby. Lame
Рет қаралды 14 МЛН
Unveiling the Future: Google I/O 2024's Groundbreaking AI
9:55
AI Revolution
Рет қаралды 238
ELECTRON: why people HATE it, why devs USE it
17:19
The Linux Experiment
Рет қаралды 179 М.
JWT Authentication in Rust | A Step-by-Step Guide
17:13
Semicolon
Рет қаралды 1,1 М.
Why HTMX and Golang? The answer might surprise you...
12:04
Flo Woelki
Рет қаралды 1,8 М.
Async Rust Is A Bad Language | Prime Reacts
28:46
ThePrimeTime
Рет қаралды 83 М.
Electron vs Tauri: This Was Unexpected!!
9:41
DashCruft
Рет қаралды 34 М.
I earn $1,753/day with this SIMPLE tech stack
6:59
Marc Lou
Рет қаралды 303 М.
The ultimate Rust IDE is here
6:53
Let's Get Rusty
Рет қаралды 124 М.
Why You Shouldn’t Build Your Next App in Rust
9:18
warpdotdev
Рет қаралды 77 М.
На iPhone можно фоткать даже ночью😳
0:30
GStore Mobile
Рет қаралды 1,4 МЛН
IPad Pro fix screen
1:01
Tamar DB (mt)
Рет қаралды 3 МЛН
Эффект Карбонаро и бумажный телефон
1:01
История одного вокалиста
Рет қаралды 2,4 МЛН
What’s your charging level??
0:14
Татьяна Дука
Рет қаралды 5 МЛН
Готовый миниПК от Intel (но от китайцев)
36:25
Ремонтяш
Рет қаралды 433 М.
Why spend $10.000 on a flashlight when these are $200🗿
0:12
NIGHTOPERATOR
Рет қаралды 18 МЛН