Alternatives to Rust suitable for GUI but with a Cargo like package manager?

The thing I see lacking in most package managers is:

  • A standard build system and build commands
  • Command for compiling API documentation
  • Online API host

Cargo does have these things; but today as I know Rust isn't suitable for GUI and it's often recommended to try things like Tauri to combine Rust and HTML5.

I wanted to know if there is any language series that supports a package manager just like Cargo and has good GUI support.

(I have said I was working in Whack, but I gave up.)

Can you explain a bit better what you mean by "not suitable for GUI"? There are lots of perfectly fine GUI applications written in Rust but maybe your requirements aren't staandard ones?

1 Like

Not sure, I just read somewhere Rust isn't mature for building GUIs yet. I have passed eyes through Azul before for example, but never used it.

That depends, if you mean web ui specifically, its less about rust and more that the web if you're not doing static pages only, you're stuck with javascript. Theres web assembly, and the rust frameworks built for it are good, but wasm itself is kinda imature, you'll have the same problem with anything else thats not javascript.

For desktop/native its another story, plenty of good options. Theres an entire Desktop Environment beeing built on Iced.

Edit: If you're used to web development and want to take advantage of it, Tauri is indeed a good option, its kinda like Electron but without sucking.

[quote="hydroperfox, post:1, topic:117991"]
to combine Rust and HTML5
[/quote]I use Rust and HTML 5 and no Cargo. Everything works smooth. Rust is actually very good for writing a web UI. I created own build system, but it's in alpha state now and I won't recommend it.

It depends on your needs then. Do you want to use HTML (I guess not). Do you want a multi-platform toolkit or do you target a single platform? What about using native widgets vs a Rust only solution, including all the UI drawing? It really depends on your use case. For example in the Linux/Gnome space there are quite some apps written in Rust and Gtk (gtk-rs is pretty mature) but maybe that's not what you are interested in.

Without a clear indication of your needs is difficult to suggest something.

2 Likes

Well, I certainly won't call Rust suitable for GUI, but I make GUI program in Rust anyway. It's a combination of 3 points

  • Rust is not as good as other options in GUI.
  • Rust GUI support is good enough for me.
  • I'm more proficient in Rust.

Anyway, beside recommending Rust crates or JS frameworks that you already know, maybe try flutter? https://flutter.dev/

1 Like

Building a gui in rust is most certainly possible and has the potential to be a far more reliable experience than other languages. That said, it sounds like you don't know rust very well and it can take a long time to become proficient in the language. That said, you should check out the rust book if you need to learn rust. Once you feel comfortable (if you aren't already) check out Are We Game Yet and Are We GUI Yet. There are tons of options out there and some are mature enough for production

I know Rust, but I have used it more for engineering a compiler than anything else.

I've revisited Azul, Iced and GTK, but they don't seem to be very customisable. (GTK should be though in some ways, given Linux distributions often use it already and are customisable through custom skinning).

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.