macOS Apps in Rust
Pretty cool project, seems like it&#x27;s becoming more realistic to write cross platform native desktop applications with OS-specific GUIs in Rust.<p>It&#x27;s not too far from the write-once-run-everywhere philosophy of React native, Electron and similar. One could write their UI state and application logic once while maintaining 3 entry points using the various platform GUI bindings (gtk-rs, cacao, win32?) to represent the UI state.<p>This has the advantage of a project feeling natural to the platform while still allowing for code reuse between platforms - though you would still need to rewrite widgets&#x2F;components for each platform independently.<p>Something that isn&#x27;t talked about much in the GUI world (outside of mobile development) is how essential multi-threading is to a great application experience. After all, you can&#x27;t horizontally scale a client device so it&#x27;s important that an application is able to maximize its use of the available hardware. Rust&#x27;s borrow checker&#x2F;ownership model eliminates dangerous multi-threaded code which makes it practical to write highly efficient GUI applications.<p>Could be good for projects like cross-platform terminal emulators or code editors.