TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Rust: State of GUI, December 2022

211 点作者 millyleaves超过 2 年前

19 条评论

bryanlarsen超过 2 年前
Shout out to Dioxus. It&#x27;s a react clone that provides a really nice experience and can run a web GUI faster than React can. That&#x27;s quite the accomplishment given the disadvantage of having to use shims to access the DOM.<p>If you want to choose a single language that can create native GUI&#x27;s, Rust is probably your best or only choice. Other languages are lacking a good story for either the web or for iOS but Rust works well on both.
评论 #33982907 未加载
评论 #33982760 未加载
评论 #33983813 未加载
logicalshift超过 2 年前
I&#x27;ve been working a 2D rendering toolkit that increasingly looks to me like it probably deserves a mention on these lists: <a href="https:&#x2F;&#x2F;github.com&#x2F;logicalshift&#x2F;flo_draw" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;logicalshift&#x2F;flo_draw</a> (but I&#x27;m not on Reddit...). Layers, vector sprites, dynamic textures and a streaming API that fits well with &#x27;reactive&#x27; designs are amongst the features that make it stand out from what else is out there. It&#x27;s super simple to get going too.<p>Started life as a rendering layer for FlowBetween so I could put in whatever looked like it was &#x27;winning&#x27; later on but wound up writing my own renderer as there wasn&#x27;t anything quite there yet. Still has that design so another unique thing is that it&#x27;s possible to use the same API with whatever rendering layer you want.<p>Speaking of FlowBetween, one thing I have wanted to do for ages is to get rid of the platform-specific GUIs and use something universal. It <i>should</i> be easy because FlowBetween sends straightforward instructions to an independent GUI layer, but I keep bouncing off for a few reasons:<p>- it&#x27;s a big ole task so I definitely want to pick something that&#x27;s stable and also lets me hedge my bets in terms of being easy to migrate away from<p>- most commonly, FlowBetween needs pressure data from tablets and a lot of frameworks just don&#x27;t do that (this is also in a terrible state in browsers)<p>- lots of GUI crates are designed as frameworks and so try to dictate the entire design of any app that uses them, which is no good for FlowBetween which tries to keep its internal design choices independent of its choice of GUI<p>At the moment, I suspect that some sort of imgui framework is best along with an entirely manual implementation of tablet pointer data: fits with my existing design and isn&#x27;t &#x27;contagious&#x27; in a way that could make it hard to migrate to something else later on.
smasher164超过 2 年前
One thing I&#x27;d like to see are Rust bindings for wxWidgets. Contrary to the prevailing opinion, I think wrappers over native toolkits are a fine approach for cross-platform development.
评论 #33982628 未加载
评论 #33981925 未加载
评论 #33986748 未加载
评论 #33981872 未加载
评论 #33990788 未加载
dfgdfgffd超过 2 年前
Sadly Rust for WinUI3&#x2F;UWP&#x2F;XAML for Windows GUI - actually modern UIs on Windows - was abandoned or explicitly removed from Rust API bindings by MS.<p>The listed library only uses the ancient win32 api
评论 #33981605 未加载
评论 #33981559 未加载
评论 #33981508 未加载
评论 #33982826 未加载
评论 #33981811 未加载
dohdhdaa超过 2 年前
Unless a Rust OS is created with an official toolkit, Rust apps will always exist on a platform that already has a native toolkit. Any custom framework will always feel wrong and out of place.<p>I use macOS, so apps should be written with AppKit. For Linux they should either be GTK or Qt, depending on desktop. Recreating widgets from scratch with GPU rendering is doomed to feel wrong to users.
评论 #33983587 未加载
评论 #33983801 未加载
评论 #33983578 未加载
评论 #33983548 未加载
评论 #33983629 未加载
评论 #33983511 未加载
评论 #33983854 未加载
评论 #33984765 未加载
评论 #34009745 未加载
评论 #33985342 未加载
评论 #33983695 未加载
评论 #33983440 未加载
评论 #33984442 未加载
评论 #33983615 未加载
评论 #33983518 未加载
Lichtso超过 2 年前
Shameless self promotion plug, I developed a GPU accelerated 2D rendering framework in Rust as well. It even comes with an experimental UI framework on top, which you can try in the browser if you have WebGPU enabled:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Lichtso&#x2F;contrast_renderer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Lichtso&#x2F;contrast_renderer</a>
评论 #33985797 未加载
jbk超过 2 年前
How many of those actually look and behave like native and support accessibility correctly?
评论 #33982074 未加载
评论 #33982583 未加载
评论 #33982423 未加载
评论 #33982141 未加载
评论 #33982642 未加载
评论 #33982118 未加载
评论 #33982039 未加载
rtpg超过 2 年前
A pretty fun Rust GUI experienc is vgtk[0], which is doing a bunch of macro magic to give a &quot;we&#x27;re coding in React&quot; vibe to GTK+. I don&#x27;t really have a specific thing I want to code in a native GUI at the moment but if I did I think this would be the most tempting for me.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;bodil&#x2F;vgtk&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bodil&#x2F;vgtk&#x2F;</a>
评论 #33985523 未加载
评论 #33983845 未加载
joshka超过 2 年前
Anyone have a recommendation of what they&#x27;d use to run on a raspberry pi with a touch screen? My preference would be booting direct to the gui and having no other things running (i.e. X11 &#x2F; etc.) as well as having a good development story for macOS. Is there something decent that enables this for rust? Bonus points for github example repos.
评论 #33988363 未加载
eklavya超过 2 年前
Flutter app with rust core works great too.
评论 #33988410 未加载
robertkrahn01超过 2 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;gabdube&#x2F;native-windows-gui" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gabdube&#x2F;native-windows-gui</a> isn&#x27;t in the list but is quite a polished option for building Windows specific GUIs. Seems to be the more mature option compared to winsafe.
the__alchemist超过 2 年前
Of the UI toolkits listed, it seems like Egui is nicest to use. It&#x27;s flexible, has a nice collection of built-in widgets, is compatible with 3D graphics APIs (like WGPU), and has a clean API.
fschuett超过 2 年前
One day I&#x27;ll get around to finish my library Azul [1]. Hopefully.<p>[1] <a href="https:&#x2F;&#x2F;azul.rs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;azul.rs&#x2F;</a>
intelVISA超过 2 年前
Is there a decent immediate mode GUI for Rust? Think ImGui, I know of eGui but unsure how workable it actually is in reality.
评论 #33984929 未加载
cultofmetatron超过 2 年前
I for one would love to see a toolkit akin to the user interface in blender. It would be a boon to anyone building 3d applications where high performance is necessary. (the kind of thing you&#x27;d probably want to use rust for anyway.)
phkahler超过 2 年前
KAS will never be popular so long as it can only be used with Rust apps. It&#x27;s still nice to see how Rust can be used in this context, but maybe make it into a wrapper for something more flexible.
评论 #33984071 未加载
323超过 2 年前
10 years ago Python was famous for how many web frameworks it had.<p>It seems Rust will be famous for the number of GUI libraries.
评论 #33982681 未加载
评论 #33982666 未加载
phneutral26超过 2 年前
wow, really impressive!
评论 #33981816 未加载
worik超过 2 年前
My favourite GUI is and always will be the command line.
评论 #33997502 未加载