News for hackers. Stuff that matters.
Re:Rust 2020: GUI and Community by pnako on Sunday November 10, 2019 @01:15AM (#21496704)
wxWidgets is the most popular one. It's an ambitious project that allows accessing true native widgets, not just from C++ but also from other languages like Python, etc.
Re:Rust 2020: GUI and Community by twic on Sunday November 10, 2019 @08:19AM (#21497840)
Someone had a go at a Rust binding of wxWidgets five years ago:

https://github.com/kenz-gelsoft/wxRust

As they mention, this is based on a C wrapper round wxWidgets' native C++ API, originally developed to aid in developing a Haskell binding to wxWidgets:

http://wxc.sourceforge.net/

The Rust binding is probably bitrotted for modern Rust, but since it's mostly generated, generating a low-level API using bindgen, which is actively maintained, and then a high-level API using a Python script of its own, it might be fairly easy to resurrect.

bindgen has got pretty good at converting C++ APIs, so it might be worth trying it on wxWidgets' native API, too.

I have no plans to write a GUI application in Rust myself, but i would love for there to be a good option for other people to write native GUI apps in Rust. As many other commenters have noted, cross-platform synthetic GUIs never look or behave quite right.