News for hackers. Stuff that matters.
Re:Librem 5 Docs by steveklabnik on Wednesday April 11, 2018 @06:41PM (#16816409)
GTK is re-writing bits in Rust, so it’s a pretty robust option overall. Lots of work left to do!
Re:Librem 5 Docs by pjmlp on Thursday April 12, 2018 @05:02AM (#16819134)
I only dabbled with Gtk-rs for a bit, and Rust does not really fit my UI/UX workflows, but I would still suggest as major improvement a better way to being able to reference struct fields from callbacks without the current Option<Rc<>> workarounds.
Re:Librem 5 Docs by steveklabnik on Thursday April 12, 2018 @09:20AM (#16820582)
There are already some projects that let you do that, consider Relm for example: https://github.com/antoyo/relm/blob/master/examples/http/src...
Re:Librem 5 Docs by shmerl on Wednesday April 11, 2018 @07:53PM (#16816875)
Is Qt with Rust usable already, or it's still very experimental?
Re:Librem 5 Docs by steveklabnik on Wednesday April 11, 2018 @10:09PM (#16817456)
I don't have personal experience, but my understanding is that GTK is much easier since it's in C; QT makes use of some C++ features like inheritance that don't have a direct analogue in Rust that makes it hard. I've heard of several people doing things, but am not sure there's a particular go-to amazing solution at the moment.
Re:Librem 5 Docs by shmerl on Wednesday April 11, 2018 @11:16PM (#16817709)
The last time I looked into it, there was this project: https://phabricator.kde.org/source/rust-qt-binding-generator...

But it was in the prototype stage then.