this post was submitted on 26 Oct 2023
71 points (90.8% liked)

Programming

17392 readers
188 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Sasquatch@lemmy.ml 7 points 1 year ago (2 children)

I would disadvise Rust for (most) desktop apps. There aren't any GUI libraries yet, and the Qt bindings aren't beginner-friendly yet.

Unless you just meant headless desktop apps, in which case Rust is my goto

[–] hperrin@lemmy.world 3 points 1 year ago (2 children)

There’s Tauri. Basically Electron with Rust instead of Node.

[–] SeriousBug@infosec.pub 3 points 1 year ago

You can make an app with Tauri without writing a single line of Rust though. Tauri lets you trigger most native functionality you might need from the JavaScript side. If that's enough for what you are building then you don't need to write any Rust. You could use a Rust web framework that compiles to WebAssembly, but you could also just use React or Svelte or whatever else.

[–] lysdexic@programming.dev 1 points 1 year ago

There’s Tauri.

...and now your newbie has to onboard onto not only Rust (?!) but also HTML, CSS, and JavaScript to render "Hello World".

[–] calcopiritus@lemmy.world 2 points 1 year ago

There are GUI libraries. I personally use iced a lot. Even if it's not v1.0 yet, it has many features. There are also bindings for other more common libraries such as GTK, QT and imgui. There's also egui as a native rust alternative to imgui.