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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Tauri 2.0 tries to make mobile apps crossplatform

138 点作者 nancyp大约 1 年前

14 条评论

martpie大约 1 年前
I am currently working on porting Museeks [0] from Electron to Tauri 2.0, mainly to reduce the memory and app size footprints, which are the main things everybody complains about with Electron.<p>What I really like:<p>- the dev experience is stellar and comes out of the box. No need to setup binary compilation, webpack, vite, hot-reload, TS compilation for back-end, etc yourself. You can pick your favorite JS framework with Vite, during setup, or use a Rust frontend (kind of what electron-forge is doing, but it is buggy, and landed yeaaaars after Electron was released).<p>- the architecture makes sense (commands, security, plugins, all very well-designed)<p>- they provide official plugins for common-usecases (SQL, config, etc)<p>- Rust is fun and interesting to learn for folks like me used to high-level languages like JS or Python<p>What I don&#x27;t like as much:<p>- facing webview-specific UI issues (feature X does not work on Safari, Y not on gtk-webview etc), with Electron, you know if X works on Windows, it will work on Linux or MacOS<p>- some rough edges with the framework or the ecosystem (not as mature or dev-friendly as npm&#x27;s or Electron), but the crates (and Tauri&#x27;s) maintainers are very friendly and reactive.<p>- the focus on mobile apps, It seems like a very different space, and it feels weird to try to build with big mashup framework. I would rather have them work on more integrations, but whatever.<p>- changes in the Rust backend can take minutes to compile, and rust-analyzer is damn slow.<p>Overall I&#x27;m really happy and having a lot of fun. I will keep working on this port and release it when I can. Kudos to the Tauri team, what you are building is awesome :)<p>[0] <a href="https:&#x2F;&#x2F;museeks.io" rel="nofollow">https:&#x2F;&#x2F;museeks.io</a>
评论 #39487010 未加载
评论 #39486611 未加载
评论 #39487046 未加载
videlov大约 1 年前
We have been using Tauri for about a year (a desktop app) and I am very happy with our choice. What I initially found attractive was the smaller binary sizes. Over time I have come to really appreciate their stance on security and implementation of the Isolation pattern[0].<p>When we were deciding whether we want to build our business[1] around Tauri, the final argument that helped me decide was the video manifesto[2] on their site as I felt that we were aligned on values. Having interacted with the community over this one year I have had a very positive experience, therefore Tauri definitely gets my recommendation.<p>[0] <a href="https:&#x2F;&#x2F;tauri.app&#x2F;v1&#x2F;references&#x2F;architecture&#x2F;inter-process-communication&#x2F;isolation" rel="nofollow">https:&#x2F;&#x2F;tauri.app&#x2F;v1&#x2F;references&#x2F;architecture&#x2F;inter-process-c...</a> [1] <a href="https:&#x2F;&#x2F;github.com&#x2F;gitbutlerapp&#x2F;gitbutler">https:&#x2F;&#x2F;github.com&#x2F;gitbutlerapp&#x2F;gitbutler</a> [2] <a href="https:&#x2F;&#x2F;tauri.app&#x2F;about&#x2F;intro" rel="nofollow">https:&#x2F;&#x2F;tauri.app&#x2F;about&#x2F;intro</a>
评论 #39487280 未加载
xcdzvyn大约 1 年前
It&#x27;s been disheartening to see the degradation of desktop computing because of the shift to &quot;mobile first&quot;.<p>That AI UI designer (Aiuzard?) doesn&#x27;t even know what a &quot;desktop program&quot; is. Everything&#x27;s expected to look like a website or a mobile app.
评论 #39486164 未加载
评论 #39486096 未加载
seabass-labrax大约 1 年前
I&#x27;m pretty impressed by what&#x27;s been put in place to ensure good governance of the project. They have already become a project of the Commons Conservancy, which is a &#x27;fiscal sponsor&#x27; organization, and they have a <i>very</i> geographically diverse initial board (seven board members from seven different countries across four continents).<p>Whatever the technology, this is a serious committent to community-led FOSS, which already sets it apart from the Flutters, Xamarins and Ionics of the world, which are primarily profit-making ventures with an open source aspect on the side. Projects founded with a strong mission and rigorous planning usually cause positive changes within the other ecosystems they touch, even if they don&#x27;t end up standing the test of time themselves.
edjw大约 1 年前
The Build and Distribute parts of the docs are the things I clicked on first. How can I get Tauri mobile apps in Apple and Google app stores? But they&#x27;re both &#x27;stubs&#x27; with no content yet.<p><a href="https:&#x2F;&#x2F;beta.tauri.app&#x2F;guides&#x2F;build" rel="nofollow">https:&#x2F;&#x2F;beta.tauri.app&#x2F;guides&#x2F;build</a> <a href="https:&#x2F;&#x2F;beta.tauri.app&#x2F;guides&#x2F;distribute" rel="nofollow">https:&#x2F;&#x2F;beta.tauri.app&#x2F;guides&#x2F;distribute</a>
评论 #39485938 未加载
the__alchemist大约 1 年前
If you are looking for a non-web-based cross-platform GUI in rust, check out EGUI. It has an easy-to-use API, good docs, runs fast, and can integrate with 3d graphics, maps etc.<p>&gt; By being built on Rust, Tauri is able to take advantage of the memory, thread, and type-safety offered by Rust. Apps built on Tauri can automatically get those benefits even without needing to be developed by Rust experts.<p>How much of this is mitigated by being web-API-based?
评论 #39486189 未加载
评论 #39486598 未加载
评论 #39487938 未加载
abound大约 1 年前
Another (also Rust-based) cross-platform mobile app dev kit is crux [1]. I&#x27;ve never used it, but the core idea of &quot;native UIs (i.e. in Kotlin + Swift) with a shared business logic core via IPC&quot; seems like the sweet spot to my mostly untrained sensibilities.<p>[1] <a href="https:&#x2F;&#x2F;redbadger.github.io&#x2F;crux&#x2F;" rel="nofollow">https:&#x2F;&#x2F;redbadger.github.io&#x2F;crux&#x2F;</a>
nancyp大约 1 年前
They were a great alternative for Electron for desktop apps for sure. I&#x27;m not very hopeful that they become yet another solution to solve too many platform issues. How could they prevent the framework become over bloated with semi baked plug-in?
评论 #39485905 未加载
yesimahuman大约 1 年前
Seems like the main differentiator for Tauri is building plugins and features in Rust, no? Otherwise the core architecture will be the same as Capacitor and other projects as that is dictated by the SDK support on each platform (especially iOS).
评论 #39488044 未加载
评论 #39487171 未加载
account-5大约 1 年前
Why would you use this over dart&#x2F;flutter for cross platform mobile apps?<p>I chose dart&#x2F;flutter after searching and failing to work out what would be the best web framework to use out of the ever increasing amount of them.
tdhz77大约 1 年前
Play around with Tauri the last few months and I&#x27;ve come to the realization that I don&#x27;t want to build my business on it. We have seen these before (Electron, Expo, Ionic) and they all suffer from the same pitfalls. Now if I have a web application and I&#x27;m trying to target mobile and I want to give my business time to develop a native application than I&#x27;m using Tauri over the rest of the crowd. A targeted business strategy can make this work, but you are doing so because you need speed not durability or longevity.
评论 #39486203 未加载
评论 #39485909 未加载
DanielHB大约 1 年前
I have been using wails for our company&#x27;s desktop apps:<p><a href="https:&#x2F;&#x2F;wails.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;wails.io&#x2F;</a><p>It is golang based and works pretty well, I don&#x27;t know how it compares with Tauri though. We use it mainly because most of our backend code is already golang and I tend to avoid introducing multiple stacks&#x2F;runtimes to a project.<p>It doesn&#x27;t support mobile apps yet, but if you want something golang-based I recommend it.
butz大约 1 年前
If you ditch all &quot;support&quot; libraries, your webview Android application can be smaller than 100KB. And it will build much faster too.
malermeister大约 1 年前
Just use Compose and Kotlin Multiplatform.