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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Dioxus 0.6 – Crossplatform apps with Rust

290 点作者 jkelleyrtp5 个月前

25 条评论

suby5 个月前
I&#x27;d like to report my experience trying out this release.<p>I did a cargo install. I then used the dx command line app to create a new project. After initialization I ran dx serve in the directory as instructed, but it gave me a compiler error with seemingly no feedback on what specifically went wrong. And again, this is for a hello world app that they generated for me. I&#x27;m unsure how to obtain more information on why it failed.<p>I feel like I&#x27;d have more insight and ability to debug this if I were trying to compile using a standard rust workflow rather than their CLI tool.<p>You can press v to enable verbose logging, but this doesn&#x27;t add information which provides clarity to me. Here&#x27;s the compiler output with verbose logging, though heavily edited to be readable in this HN comment box<p>14:17:49 [dev] Building server...<p>14:17:49 [dev] Building app...<p>14:17:49 [dev] Executing cargo...<p>14:17:49 [dev] cargo args: [&quot;--profile&quot;, &quot;server-dev&quot;, &quot;-- verbose&quot;, &quot;--features&quot;, &quot;dioxus&#x2F;server&quot;, &quot;--bin&quot;, &quot;hack&quot;]<p>14:17:49 [dev] cargo args: [&quot;--verbose&quot;, &quot;--features&quot;, &quot;desktop&quot;, &quot;--bin&quot;, &quot;hack&quot;]<p>14:17:49 [dev] cargo args: [&quot;--profile&quot;, &quot;server-dev&quot;, &quot;--verbose&quot;, &quot;--features&quot;, &quot;dioxus&#x2F;server&quot;, &quot;--bin&quot;, &quot;hack&quot;]<p>14:17:50 [dev] Setting builder to failed state<p>14:17:50 [dev] Build failed: Other(Cargo build failed, signaled by the compiler)<p>Status: Failed
评论 #42391770 未加载
评论 #42392926 未加载
echelon5 个月前
I&#x27;ve been interested in Dioxus, Leptos, egui, etc. for awhile, but I have to admit I don&#x27;t know the technical workings of the framework.<p>On desktop&#x2F;mobile, does Dioxus run as a native app? Is it an immediate mode renderer like egui? How do you style it? Or is it JavaScript + webview&#x2F;electron?<p>On the web does it run as a WASM binary against a canvas renderer, or is it write to DOM? How does it talk to the DOM? WASM, JavaScript transpilation, etc.?<p>Can you do multithreading on web with web workers? Is the async story good? HTTP&#x2F;gRPC clients?<p>Do you have to build your entire app in Dioxus, or can you incorporate other web (eg. React) apps? Can it talk to JavaScript?<p>How solid is the API now? Is it going to change a lot in the near future?<p>Do you think it&#x27;d be trivial to stuff a Bevy game inside of a Dioxus shell? We&#x27;ve thought it might be easier to prototype the UX outside the engine, especially since web is a deployment target.<p>How big is the community?<p>Looking into this for a project soon, so if any of the Dioxus devs can answer some of this, I&#x27;d super appreciate it. (Sorry for all the questions which may already be answered in the FAQ&#x2F;docs.)
评论 #42389197 未加载
评论 #42396603 未加载
jjallen5 个月前
Every six months or so I long for a consensus rust gui framework and try this one and run into an error from downloading the demo or playground or something like that.<p>Some of us want to invest many years of time and money into stuff and have to make the decision carefully.
评论 #42390419 未加载
ewuhic5 个月前
Dioxus drastically lacks in ecosystem. There is not a single component library out there. I&#x27;m also not sure about virtual DOM.<p>I do track and use their main competitor - Leptos.
评论 #42390524 未加载
评论 #42390855 未加载
评论 #42395371 未加载
评论 #42391671 未加载
评论 #42390324 未加载
评论 #42395180 未加载
oDot5 个月前
After discovering and adopting[0] Lustre, I can&#x27;t think of using anything other than The Elm Architecture. It is so much more ergonomic it&#x27;s not even comparable to today&#x27;s mainstream state management techniques.<p>I&#x27;m also building a screenplay editor prototype[1] in the Rust equivalent, Iced, and while not as ergonomic as Lustre and Gleam, it is TEA. Iced is still in flux but I have trust, considering System76 uses it to build Cosmic.<p>[0]: <a href="https:&#x2F;&#x2F;blog.nestful.app&#x2F;p&#x2F;gleams-lustre-is-frontend-developments" rel="nofollow">https:&#x2F;&#x2F;blog.nestful.app&#x2F;p&#x2F;gleams-lustre-is-frontend-develop...</a><p>[1]: <a href="https:&#x2F;&#x2F;www.weedonandscott.com&#x2F;tech&#x2F;project-realm" rel="nofollow">https:&#x2F;&#x2F;www.weedonandscott.com&#x2F;tech&#x2F;project-realm</a>
评论 #42394489 未加载
评论 #42396753 未加载
评论 #42394115 未加载
评论 #42393715 未加载
diablozzq5 个月前
I’ve been watching this for a while. It’s the most promising tech framework I’ve seen. If they succeed, it could obsolete all other frameworks.<p>Mobile, desktop, web, rust<p>They have an eye on performance up front which is where most previous attempts fail.<p>And rust gives them the security and performance foundation up front.<p>.5 was a huge leap, this looks like the polish that should make it viable.
评论 #42389478 未加载
评论 #42389551 未加载
评论 #42399719 未加载
评论 #42389872 未加载
评论 #42394627 未加载
评论 #42391395 未加载
评论 #42389238 未加载
weinzierl5 个月前
Dioxus raised venture capital, so I&#x27;d be careful before betting my future on them.<p>Do they require copyright assignment or a CLA? I could not find anything on their GitHub.<p>How many of their contributors are payed?
评论 #42399405 未加载
ianpurton5 个月前
I&#x27;m using Dioxus on the server side and have written about it here. <a href="https:&#x2F;&#x2F;rust-on-nails.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;rust-on-nails.com&#x2F;</a><p>The way you write components is really great and the overall developer experience is very good.
solidninja5 个月前
Dioxus is the only web-platform technology toolkit that I see having the ability to be cross-platform and use Javascript as little as possible - glad to see their native WGPU rendering stack progress (check out the videos by Nico Burns on Blitz, Taffy etc)
ryukoposting5 个月前
I tried Dioxus out earlier this year - I wanted to make a little SSHFS GUI client. Think Google Drive UI but in a dedicated window and it&#x27;s SSHFS instead of some cloud nonsense. Everything went swimmingly until I needed shared state between different contexts. From that point, the code got really messy, really quickly. I don&#x27;t know what the right solution is for this problem. What I <i>can</i> say is Dioxus hasn&#x27;t found it yet.<p>The static HTML templating thing is pretty damn good, though. I actually use it to render parts of my blog.
tdomhan5 个月前
The new hot-reloading is amazing! Coming from another Rust web framework waiting for UI updates to show up has always been a huge painpoint, so thanks for this!
gr4vityWall5 个月前
Suggestion: the post title contrast with the page background could be improved.<p>Question: where does Qt stands these days, and how does this toolkit compare to it regarding accessibility and handling HiDPI screens? Are there any quality bindings for languages that aren&#x27;t C++ and Python? It feels like they solved a lot of problems long ago, and the toolkit could be way more popular with better bindings and tooling.
评论 #42403020 未加载
andridk5 个月前
Very cool demo, but If the application code is HTML&#x2F;JS&#x2F;CSS, then why do we need RSX?<p>Is the web framework necessary? How does this compare, to say Tauri w. React &amp; Vite?
评论 #42389805 未加载
datadeft5 个月前
Is Tauri and Dioxus similar projects, or those are made for different purposes?
评论 #42389078 未加载
评论 #42389314 未加载
评论 #42389090 未加载
_blk5 个月前
Sounds promising. I was looking at Tauri recently for an upcoming iOS&#x2F;Android project but it doesn&#x27;t seem mature enough. I will require bluetooth and with flutter I know how to go about it. How do you, @jkelleyrtp, feel Dioxus would perform in terms of DX for a dev comfortable with flutter, react and rust but a bit of a novice with Xcode. Publishing for iOS just always seems such a hassle, but if I can&#x27;t get the last step done the whole project is worthless. With rsx, does Dioxus support more free-form layouts that are not the typical Gtk box in a box but more web-type layer over layer (i.e. absolute&#x2F;static positioning in html or Flutter&#x27;s Stack component)
satvikpendem5 个月前
Looking forward to this as I use Flutter personally but sometimes I write code for it via its FFI package flutter_rust_bridge, but it&#x27;d be nice to use Rust directly everywhere. I am also interested in the usage of the GPU as Flutter does because that way you get a consistent experience on the web as well as mobile and desktop. Flutter recently removed their HTML renderer because it was hard to keep both renderers in sync, but I don&#x27;t believe Dioxus will do that as they started off HTML-first rather than mobile-first like Flutter.
solarkraft5 个月前
From a cursory look the Server Functions for Native seem like a what I imagined Tauri to be: A real RPC framework that skips you the anoyances of serialization.
adastra225 个月前
I want a Rust GUI framework or even entire app framework that can target desktop, mobile, and web, but I DON’T want to use web technologies other than when I am actually running within a browser. Is that Dioxus? I can’t tell the answer from what’s written here and in the comments.
评论 #42402394 未加载
评论 #42401695 未加载
revskill5 个月前
I love the simplicity of the flow: Mutation =&gt; Server returns full API for FE to rerender the whole page.<p>Trying to figure out which parts of the page to auto reload is hacky to me.<p>And it&#x27;s the best proof of: Preoptimization is the root of all evil squares.
_bin_5 个月前
this looks interesting and could be a cool option. have yet to dive in deep but tbh i&#x27;m uncomfortable using a Fancy New Framework that maintainers refuse to bump to &gt;0 major version. i know semver is a bastardized wreck of its intended semantics but still, gotta stabilize at some point. could be misdirected here but i have a reactionary streak about this after seeing one too many 8 year old libraries with 5mil downloads that still won&#x27;t freaking version a 1.0.0.
评论 #42402416 未加载
kussenverboten5 个月前
It works amazingly well. Great crate!!
ecmascript5 个月前
It&#x27;s cool but I could never live with that syntax. Impossible to read, it feels like.
评论 #42402586 未加载
sa-code5 个月前
Would be cool to see a front end for this in Mojo when the language matures a bit
trentontri5 个月前
Have you considered contributing to Tauri?
评论 #42401351 未加载
benatkin5 个月前
The username of one of the devs :) <a href="https:&#x2F;&#x2F;github.com&#x2F;DogeDark" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;DogeDark</a>