I decided to adventure myself in Tauri development for a personal project, I read the entire Rust official book and followed the exercises. When I first started developing it was like if nothing I learned helped for real life projects.

Now after getting betting up every single time I touch my project, it seems I’m catching things slowly.

But I’ve never seen such a hard modern language, I used C and C++ before and it’s incomparable.

  • JohnHammerSky@lemmy.todayOP
    link
    fedilink
    arrow-up
    1
    ·
    24 hours ago

    But then what’s the point of Tauri? I mean there are plenty general use projects in Tauri, why’d they chose Rust?

    • calcopiritus@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      17 hours ago

      Do you really need tauri?

      Tauri is for web devs that want to make GUIs with web tech in rust. You can do GUIs without web tech.

      If you really want to make a GUI with rust, you can use iced.

      If you just want a GUI with web tech, do it in JavaScript+html.

      If you want a GUI without web tech and don’t care the language, use a GUI toolkit for your preferred language.

      Learning a GUI toolkit is hard. Learning a language is hard. Learning both at the same time is even harder than the sum.

      • JohnHammerSky@lemmy.todayOP
        link
        fedilink
        arrow-up
        1
        ·
        3 hours ago

        Tauri provides native system plugins cross platform, that’s what I want, paired with the fact it doesn’t bundle Chromium, apps are lightweight and fast.

        You can use Tauri with Iced too, it doesn’t require web tech, the strong point of Tauri is the native system modules.

        I thought about using native tools only but I’m planning on supporting Linux and Windows at the same time, so that’s the appealing for me.

          • JohnHammerSky@lemmy.todayOP
            link
            fedilink
            arrow-up
            1
            ·
            1 hour ago

            The GUI isn’t important to be honest, just anything that doesn’t look too outdated. I’m more interested on cross-platform native plugins, so I don’t need to write all by hand. Slint seems to be less libre than Tauri, there are pricing on their website, even tho I understand it’s free, still, I prefer to keep it away from strongly backed by individual company, especially if I don’t know it well.

    • fruitcantfly@programming.dev
      link
      fedilink
      arrow-up
      8
      ·
      23 hours ago

      Once you’ve learned it, Rust is just a very nice compiled language to work with.

      You get higher level constructs than in C++, a language without a billion weird edge cases, a modern package manager, and much more. In my experience, my code written in Rust is more likely to work as intended, both because of the stricter compile-time checks, but also because language features like sum types make it easier to check the core logic at compile time.

      I work in both C++ and Rust, among other languages, but these days I never reach for C++ for a new project

    • Lucy :3@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      24 hours ago

      A fake sense of security by pretending that simple apps that don’t expose low level interfaces and use wrapping libraries for all parts of networking need to be implemented by-design memory language, or for people who just like rust.