News for hackers. Stuff that matters.
Re:Exploring System76's New Rust Based Desktop Environment by mmstick76 on Thursday January 13, 2022 @08:45PM (#29929618)
You can avoid virtually all friction by sidestepping shared mutable references altogether and writing your GTK application in a more idomatic Rust way. For example, instead of passing shared references of application state to every widget signal, you can pass async Rust channels to signals. You can spawn a single async event loop attached to GLib's main context that listens for events sent from those signals, and manage all your widgets and application state in one place.

There's some libraries that effectively automate GTK in this way, such as relm4.

There are no comments on this comment yet.