TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Sauron-native – A native cross-platform GUI for Rust

255 pointsby ivancerasalmost 6 years ago

13 comments

whatshisfacealmost 6 years ago
For Rust programmers that want to write GUIs, I highly recommend gtk-rs. It does not have the easiest-to-read documentation in the world but it is a good wrapper of gtk and it suffices for production use. Although it has not reached 1.0 yet, the changes to the API are slow and mostly happen in esoteric corners, so the development cost of keeping up is not noticeable. Further, since cargo has good versioning, it won't update and surprise you.
评论 #20534786 未加载
评论 #20536706 未加载
ivancerasalmost 6 years ago
Hi HN, This is a work-in-progress project inspired by this HN comment[0].<p>[0]: HN comment -(<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19746440" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19746440</a>)
评论 #20535455 未加载
评论 #20533565 未加载
评论 #20533700 未加载
yoz-yalmost 6 years ago
I may be missing something. I read native and cross platform, project is about TUIs, HTML and GTK... maybe I have my definitions wrong.
评论 #20536263 未加载
faitswulffalmost 6 years ago
For anyone else looking to get an overview of available GUI options in rust, there&#x27;s <a href="https:&#x2F;&#x2F;areweguiyet.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;areweguiyet.com&#x2F;</a>
评论 #20535054 未加载
评论 #20536942 未加载
评论 #20534800 未加载
alkonautalmost 6 years ago
Good to see more alternatives in this space. If I can make one big app design request it would be this: Don’t assume that apps can always create their own windows. This has been a snag for winit and several others. Allow creating a GUI given an existing window handle.<p>See e.g. <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-windowing&#x2F;winit&#x2F;issues&#x2F;159" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rust-windowing&#x2F;winit&#x2F;issues&#x2F;159</a><p>If you create a rust ui framework that supports the VST windowing&#x2F;event loop model and just supports <i>one</i> GUI backend on Win32&#x2F;MacOS, then many people in the audio plugin community would be very happy.
vbstevenalmost 6 years ago
Interesting project, I’ll be checking this out soon.<p>I’ve been experimenting with several gui libraries in Rust lately and so far the GTK3 bindings seem to be the most promising for building native GUIs in Rust.<p>With native I mean GTK&#x2F;Qt style fast&#x2F;performant widgets that do not necessarily use platform-specific widgets.<p>This project seems to use GTK as one of its backends. I’m curious to see how the multiple backends architecture will influence the library design as GTK, html and TUI are vastly different.
评论 #20534067 未加载
wayneftwalmost 6 years ago
I want a multi process GUI architecture that lets me send messages to a native rendering process from a bundled sub-process which can be written in any language. Is it a bad idea? I don’t see anybody trying this…
评论 #20536911 未加载
评论 #20535886 未加载
评论 #20537100 未加载
评论 #20535734 未加载
nautilus12almost 6 years ago
Since its a front end component and front end people are used to looking at gorgeous front ends and since you took the effort to make it functional (well done!) you should take the little bit of extra effort to also make it look pretty so it resonates with your audience. :). Rust is more a system language so you want to avoid that stigma from the outset.
rapseyalmost 6 years ago
These projects always stop (or make no useful progress) at the really difficult&#x2F;tedious work of abstracting cocoa and win32 API.
评论 #20533629 未加载
评论 #20533612 未加载
Multicompalmost 6 years ago
This ui framework, if not abandoned by the tedium of win32 api integration, will make me sit up and actually try Rust for the first time. The TUI in particular looks great.<p>2020 was already slated for Rust for me but this may make me start dabbling in it a few months early (assuming I can find up to date leaning materials)<p>Tldr great job, please don&#x27;t give up on the hard part of win32 and macos but this has a great foundation feature set.
评论 #20533855 未加载
wokwokwokalmost 6 years ago
It runs on wasm in a browser; not really mobile support.<p>...and the author is abandoning it to move on to other things?<p>&#x2F;shrug<p>Didn’t solve any of the actually hard problems of a cross platform or rust based UI imo.
评论 #20537284 未加载
评论 #20534029 未加载
评论 #20534128 未加载
mseidlalmost 6 years ago
Did my dog Melkor make you?
crimsonalucardalmost 6 years ago
What&#x27;s the &quot;best&quot; solution out there for GUI&#x27;s? Looking for varying opinions of people who dabbled in several frameworks.
评论 #20535713 未加载