4 ms·
Would be great if such materials go beyond console apps. I hope desktop/GUI topic gets more attention.
by zerr 5y ago
Would be great if such materials go beyond console apps. I hope desktop/GUI topic gets more attention.
- IshKebab 5y agoThere aren't any solid GUI solutions for Rust yet though.
- nailer 5y agoI'm pretty sure Rust can run in the browser via WASM.
- gwmnxnp_516a 5y agoIf you are not afraid of unsafe blocks and extern "C" functions, it is possible to call a any C api directly including Win32 API for GUI graphical user interfaces. On Linux, one can call Gtk directly or call Qt through a custom C wrapper. The only problem is that both methods are not cross-platform. However, one with enough motivation can develop a cross-platform unified wrapper or interface that abstracts Gtk, X11 and/or Win32 API and MacOSX cocoa API. Calling Qt5 widgets through a custom C-wrapper may be a better approach than reinventing the whell since Qt already abstracts Win32 API, Unix X11 (X Windows Systems), Unix-Wayland, and MacOSX Cocoa .
- 3PS 5y agoThere aren't any mature solutions yet, but you can find a list of GUI frameworks here: http://www.areweguiyet.com/ http://www.areweguiyet.com/
- peterkos 5y agoI’ve poked around with GUI code in Rust and it just feels strange without some flavor of OOP. To me it makes much more sense to develop GUI apps with a bit higher level of abstraction (or lower?) than a rather functional interface.
- adamnemecek 5y agoTraits are pretty decent for UI's.
- olah_1 5y agoThere needs to be a Rust translation of Learn Go With Tests[1]. It’s the best programming book i’ve ever used. [1]: https://quii.gitbook.io/learn-go-with-tests/ https://quii.gitbook.io/learn-go-with-tests/