Tiny and secure native apps using Vite + Tauri | Jonas Kruckenberg | ViteConf 2022

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2022
  • Apps are cool, but small apps are even cooler. This talk will show you why size really does matter and how you can use Tauri and Vite to create amazing tiny apps! Learn more at tauri.app
  • НаукаНаука

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

  • @aryabp
    @aryabp Год назад +15

    Blazingly Fast 🚀🚀🚀🚀🚀🚀🚀🚀

  • @tititityyrs
    @tititityyrs 10 месяцев назад +2

    I heard Sauce Tauri folder at 5:40, made a laugh

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

    2:22 wondering why ts is slower than js🤔

  • @danvilela
    @danvilela Год назад

    Im really curious about the mobile part. Maybe i should start learning rust already :P

  • @sebiqqq
    @sebiqqq Год назад

    What's the source of the Table presented at 2:06?

  • @David-iq1kd
    @David-iq1kd Год назад +2

    Dumb question I'm sure, but when you publish an app like this to mobile or desktop, where does the back end rust code go? I'm used to web apps where the back end is always on a different server somewhere. With a Tauri built program, does the back end get installed with the front end and run together on the computer or mobile device, or does the back end still need to be on a separate server? Can it be used for an offline app for example

    • @RodrigoSKJ
      @RodrigoSKJ Год назад +2

      Not an expert here but I believe everything gets bundled in the app and runs locally. It is different from the modern js metaframeworks where the same codebase is responsible for server and client code. You could still build a server for the tauri app for some online capabilities. You would then have the option to call this server from either the js or the rust side of your tauri app

    • @David-iq1kd
      @David-iq1kd Год назад

      @@RodrigoSKJ does the rust compile down to JS or Web Assembly in this case then?

    • @David-iq1kd
      @David-iq1kd Год назад +1

      @@albert.thefreak Thanks, extremely helpful.

    • @dd0n396
      @dd0n396 Год назад +1

      ​@@David-iq1kd web assembly. This is because Tauri can use a yew frontend

    • @Sammysapphira
      @Sammysapphira 2 месяца назад +1

      Back end is just a term for an application that is running outside if the space the user can easily access.

  • @nabeelkausari
    @nabeelkausari Год назад +1

    I was wondering how he is presenting the code lines from 9:40, is he using a tool to paste lines from clipboard in sequence?

    • @ozanmuyes
      @ozanmuyes Год назад +3

      It's all undoing (Ctrl+Z); write the code and delete parts in the reverse order, so when you undo they'll shown part by part. The essence is that select the whole part first and then delete in 1 action - as opposed to holding the backspace key

    • @nabeelkausari
      @nabeelkausari Год назад

      @@ozanmuyes Thanks, that makes sense 🙂

  • @mmghv
    @mmghv Год назад +10

    My only complain about Tauri is that it produces a huge node_modules-like folder for Rust binaries which is more than a gigabyte for a simple app.

    • @aryabp
      @aryabp Год назад +3

      yea but for an extended project, its gonna be a reliable app

    • @mmghv
      @mmghv Год назад +1

      @@aryabp I guess, but for small util apps it would be annoying, I tried Wails which does the same but with Go instead of Rust and it produced a much smaller folder over all, only 30 mb, also Go is easier to learn so I think I'll go with Wails.

    • @aryabp
      @aryabp Год назад +2

      Yeah, tauri makes its own dependency. So, its use Native platform's webview and Not using virtual browser or others like chromium. The benefit of it is the memory management and the performance are reliable; i don't really know about wails but when i see the docs it said using JS runtime which mean using virtual browser :)

    • @mmghv
      @mmghv Год назад

      @@aryabp No it actually uses native webview just like Tauri, and it outputs a single executable, only difference it uses Go instead of Rust

    • @arianitonline8748
      @arianitonline8748 Год назад +1

      not if it's created with vite

  • @EmbeddedSorcery
    @EmbeddedSorcery 3 месяца назад +1

    Why does every framework feel like a massive Frankenstein puzzle of plugins, scripts, installed libraries, and special config files just to get up and running...

  • @mahmoud-bakheet
    @mahmoud-bakheet Год назад

    tauri int not working

  • @AndreNitschke
    @AndreNitschke Год назад

    No alternative to electron.

    • @ryanleemartin7758
      @ryanleemartin7758 10 месяцев назад +7

      Why not? What's missing? I'm curious because it's exactly the choice I'm faced with right now.

    • @VincentGroenewold
      @VincentGroenewold 7 месяцев назад

      @@ryanleemartin7758 It's better than Electron in many ways, but not as advanced yet as Electron is. Besides Electron has a way bigger install base at the moment. But it's my choice for the near future for sure, also because I'm learning Rust. ;)