Today I'm migrating my working but buggy demo from #Tauri v1 to the v2 beta.
So far so good. One area needs work because they've removed the tauri::http crate which I use to build Response structures. I can't see how to do this with tauri::request which is offered as a replacement, so need to find a protocol handler example for #TauriV2.
Wrote a little app launcher for all of my manually installed applications using Tauri in about 2 hours and with less than 100 lines of code. The .deb package it generated is just 2.8 MB in size. I added this to my startup applications using Gnome Tweak Tool.
P.S. One hour was spent fighting the borrow checker. AppImage is 164 MB.
I've been using cargo (#RustLang package manager) for [cough] yrs and it is very nice. But always on my Ubuntu laptop. #Linux
That laptop died so right now I'm using an old Windows 10 (not 11 as stated earlier) laptop with #WSL and I have cargo building in #Windows and Ubuntu 22 (under WSL) and it just works.
Cross platform #development used to be one of the hardest most frustrating things, but tools like #cargo and #Tauri have changed all that.
I'm Thang and I'm a 26-year-old software engineer from Vietnam.
👍 What I'm good at: #Ruby, #Javascript
📝 What I'm learning: #Rust, #AWS, #Terraform
🔜 What I'm planning to learn in the near future: Qt6 with C++ or Python (to overcome my Electron addiction)
This means that Rust will be used "for all solutions" in future. In any case, I like this article as positive information for more independence in programming apps.
»Getting Started With Tauri Mobile:
The new alpha version of @TauriApps is here, and brings with it a new way to build cross-platform mobile apps!«
— by @dedsyn4ps3
So, I'm doing some quick performance tests for my own JS game engine, and it turns out that the WebView used by Tauri is 40% slower than Edge itself.
A bit surprising but I guess Tauri adds some overhead, as the release build is also faster than the dev build - without doing any explicit call to the rust backend during the benchmark.
I've spent my evenings this week on #Tauri, first to see how it was (there's #rustlang and #typescript so it's cool), and then to try and implement a plugins system to load arbitrary JS code at runtime.
It's been a while since I've oscillated so much between "I think this might work" and "nope, it doesn't". In the end it works, though I cheated a bit and exposed the "host" app API through a global object.
Major progress on my first Autonomi demo app today. I'm sooo happy 😄
This proves that all the tricky but essential parts work together, so now I can add features and improve the operation knowing that effort won't be wasted.
It also already shows that we can build cross platform apps (desktop and mobile) with a web front end that use the #Autonomi#Rust APIs using #Tauri and your web framework of choice. Which for me is #Svelte
I haven't worked with #Svelte for a long time and am immediately reminded of how much I like it. 😃
I'm building a cross-platform demo (native) app which will work on Windows, MacOS, Linux and Android out of the box, using #Tauri.
It needs to be native so I can access a #Rust API to talk to a #p2p backend (#autonomi).
If you've not used Svelte I encourage you to give it a try. It is intuitive and the online docs, examples and REPL make learning by doing a breeze. Which is my style. #RustLang