Goodbye Electron and JavaScript. Hello Tauri and Rust!

Поделиться
HTML-код
  • Опубликовано: 16 окт 2024

Комментарии • 67

  • @Slate245Ivanovo
    @Slate245Ivanovo 6 месяцев назад +20

    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  6 месяцев назад +5

      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 6 месяцев назад +9

    Cool! Nicely delivered! Once I make my way through the Rust book, I'll be giving this a try!

    • @FloWoelki
      @FloWoelki  6 месяцев назад +2

      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 6 месяцев назад

      @@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  6 месяцев назад

      @@filipniklas that's awesome. lovely ideas, thank you! I've written them down :)

  • @Cavisek
    @Cavisek 4 месяца назад +12

    I've been using tauri for the last half year. I don't care about it being cross-platform (I target windows only) but I've chosen tauri ONLY because of the simplicity and the insane performance. I did work with electron and it was pain in the ass. Tauri is just perfect. The community upgrades this project everyday. The creators got pretty high investments from a huge companies (aws, cloudflare or Digital Ocean) and it is growing really fast. I can't wait to finish the v2 version because I saw that they have insane plans for v3. Can not wait for that!

    • @FloWoelki
      @FloWoelki  4 месяца назад +1

      That pretty much brings it to the point as well. Let's see what the future holds 🙌

    • @godnyx117
      @godnyx117 2 месяца назад +3

      "insane performance". Stop the 🧢 buddy!
      It uses JavaScript and a webview. It may be faster than Electrash but still, not "insane performance"...

    • @ToanNguyen-ue8rw
      @ToanNguyen-ue8rw 2 дня назад

      ​@@godnyx117 that's only the frontend, the backend is completely in rust so it would be performance.

    • @godnyx117
      @godnyx117 2 дня назад

      @@ToanNguyen-ue8rw Ah, yes! If it's in Rust, then it will magically negate the effects of JS and the Web stack...

    • @ToanNguyen-ue8rw
      @ToanNguyen-ue8rw День назад

      ​@@godnyx117 JS and the web stack huh, they are only used in the front end. You need performance on front end for what? Clicking button faster? Mean while heavy stuffs are done in the back end, and it is completely in Rust, no JS involves.

  • @Dominik-K
    @Dominik-K 6 месяцев назад +1

    Thanks a bunch for this video, really well put together. I'll definitely have a look at this

    • @FloWoelki
      @FloWoelki  6 месяцев назад +1

      thank you for the lovely feedback! awesome stuff :)

  • @xorlop
    @xorlop 6 месяцев назад +3

    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  6 месяцев назад +1

      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  6 месяцев назад

      @@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

    • @artxiom
      @artxiom 4 месяца назад

      Yes, Dioxus builds on Tauri. You can also use Leptos with Tauri (which I prefer personally), or Yew. Pretty much every frontend framework that outputs browser code: HTML, CSS, JS, ...

  • @alinmgheorghe
    @alinmgheorghe 4 месяца назад +4

    Just wait until servo is full version and has full support from Tauri. It's gonna be bonkers.

  • @WilsakoGaming_Official
    @WilsakoGaming_Official 6 месяцев назад +4

    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  6 месяцев назад +2

      it's so beautiful, isn't it? 🤗

    • @maksimmuruev423
      @maksimmuruev423 6 месяцев назад

      @@FloWoelki No its siill crapware.. not the real app as of course electron.. 100mb for 'hello world'.. heh..

  • @cbbcbb6803
    @cbbcbb6803 Месяц назад

    Can the Scintilla open source library for editing be reprogrammed with Rust-lang?

  • @pketh
    @pketh 6 месяцев назад +1

    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  6 месяцев назад +2

      i agree with that. but everyone has to go through it. no matter if you develop specifically for iOS/OSX or windows.

  • @NewFoxesHD
    @NewFoxesHD 6 месяцев назад +1

    My issue with Tauri is the lack of support for multiple web views within a single native window.

    • @FloWoelki
      @FloWoelki  6 месяцев назад

      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

  • @elgar328
    @elgar328 4 месяца назад

    8:18 is this a terminal file manager??

    • @FloWoelki
      @FloWoelki  4 месяца назад

      Nope, not really. I am using nvim with a plugin to see this.

  • @rhysmuir
    @rhysmuir 6 месяцев назад

    my issue with tauri, is that tauri it's self is written in rust, but the UI is still JavaScript.

    • @FloWoelki
      @FloWoelki  6 месяцев назад +3

      you can still feel free to use Rust for the UI. there is no limitation at all 🙌

    • @artxiom
      @artxiom 4 месяца назад

      No, you can use Rust frameworks like Leptos, Yew or Dioxus as well.

  • @mrbane2000
    @mrbane2000 4 месяца назад

    Tauri uses GTK in Linux, Edge WebView in Windows, and idk what's it called in Mac OS, but yea i wouldn't really want to use Edge WebView or anything Microsoft in my app, also GTK is not really up to date compared to Electron that uses Chromium. I personally tried all 3 Tauri, Electron, NW.js and i really liked easy of use of NW.js, i didn't also need to write protocol for file management which, cause it's offline anyway. I think what would be best if Tauri used Firefox's engine that's written in Rust partly. That would be best choice to do

    • @AdamFiregate
      @AdamFiregate 8 дней назад

      Edge is built on Chromium since 2018.

    • @mrbane2000
      @mrbane2000 8 дней назад

      @@AdamFiregateBuilt on is key word. So is Opera and Brave. I'm referring to Microsoft product

  • @ulrich-tonmoy
    @ulrich-tonmoy 6 месяцев назад

    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  6 месяцев назад +1

      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 6 месяцев назад

      @@FloWoelki Maybe a code editor or something similar

    • @FloWoelki
      @FloWoelki  6 месяцев назад +1

      @@ulrich-tonmoy jap that would be a good use case. Or even something similar to Obsidian or Notion.

    • @ulrich-tonmoy
      @ulrich-tonmoy 6 месяцев назад

      @@FloWoelki yep code editor or markdown/rich text editor

    • @infantfrontender6131
      @infantfrontender6131 4 месяца назад

      Tauri competes with Ionic, not RN/Expo. It's because Ionic also uses web view, and RN uses native elements

  • @_zetrax
    @_zetrax 6 месяцев назад +1

    let's be honest developing Android & IOS apps for large scale production apps is going to be a hassle

    • @FloWoelki
      @FloWoelki  6 месяцев назад +3

      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 6 месяцев назад

      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

  • @da40au40
    @da40au40 6 месяцев назад +1

    Javascript is inevitable brother

    • @FloWoelki
      @FloWoelki  6 месяцев назад +1

      unfortunately yes :D at least for now

  • @chrisdaman4179
    @chrisdaman4179 6 месяцев назад

    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  6 месяцев назад +1

      hopefully, everyone will notice that :) at least it will hopefully become really popular when the beta is fully released.

  • @oldm9228
    @oldm9228 6 месяцев назад +24

    New technologies suck. I like old technologies.

    • @FloWoelki
      @FloWoelki  6 месяцев назад +6

      let's go! 😄 i also have a Nokia 3109 lol

    • @powermyapps
      @powermyapps 6 месяцев назад +3

      my dad is 68, he is still using 20 yo Nokia phone. You guys should meet!

    • @MarkusBurrer
      @MarkusBurrer 6 месяцев назад +4

      You mean knapping a knife from Flintstone?

    • @FloWoelki
      @FloWoelki  6 месяцев назад +1

      that's the spirit haha

    • @morgan24TH
      @morgan24TH 6 месяцев назад +1

      We Retro Squad 😎

  • @hellelo.5840
    @hellelo.5840 6 месяцев назад

    Well tauri doesn't support custom protocols registration 😅, and they can't implement it

    • @FloWoelki
      @FloWoelki  6 месяцев назад

      maybe there will be an option in the future? :D

  • @ordinaryaspect
    @ordinaryaspect 3 месяца назад

    Tauri also use javascript

    • @FloWoelki
      @FloWoelki  3 месяца назад

      Yes partially. They do not have a Node.js Runtime like Electron, but they do have a JavaScript API to make switching easier to Tauri.

  • @guisande
    @guisande 6 месяцев назад

    Just use imgui or raylib already...

    • @FloWoelki
      @FloWoelki  6 месяцев назад +1

      these are valid alternatives, yes :)

  • @d1namis
    @d1namis 6 месяцев назад

    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.

    • @mwlulud2995
      @mwlulud2995 Месяц назад

      So you say use Electron ?

    • @d1namis
      @d1namis Месяц назад +1

      @@mwlulud2995 you don't know how to read? And yes electron is better, because it's easy. You also have Ultralight if you want more safety and modern features.