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
Наука
Blazingly Fast 🚀🚀🚀🚀🚀🚀🚀🚀
I heard Sauce Tauri folder at 5:40, made a laugh
2:22 wondering why ts is slower than js🤔
Im really curious about the mobile part. Maybe i should start learning rust already :P
What's the source of the Table presented at 2:06?
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
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
@@RodrigoSKJ does the rust compile down to JS or Web Assembly in this case then?
@@albert.thefreak Thanks, extremely helpful.
@@David-iq1kd web assembly. This is because Tauri can use a yew frontend
Back end is just a term for an application that is running outside if the space the user can easily access.
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?
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
@@ozanmuyes Thanks, that makes sense 🙂
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.
yea but for an extended project, its gonna be a reliable app
@@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.
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 :)
@@aryabp No it actually uses native webview just like Tauri, and it outputs a single executable, only difference it uses Go instead of Rust
not if it's created with vite
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...
because it is lmao
tauri int not working
No alternative to electron.
Why not? What's missing? I'm curious because it's exactly the choice I'm faced with right now.
@@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. ;)