Tauri 1.0 版本发布

经过9个月的测试版和4个月的发布候选版,Tauri 1.0 现已发布!
🌐 After 9 months of betas and 4 months of release candidates, Tauri version 1.0 is now available!
🌐 What is Tauri?
Tauri 是一个应用构建工具包,可让你使用网页技术为所有主要桌面操作系统构建软件。核心库已为你用 Rust 编写,用户界面几乎可以使用任何前端框架编写。它包括一个可选且可进行树摇优化的 JavaScript API,以便舒适地进行低级系统访问;一个带有代码签名和工件验证的桌面二进制打包器;一个安全的更新程序,确保你的用户使用最新版本;一个广泛的插件系统;以及对操作系统级别集成(如通知和应用托盘)的支持。
🌐 Tauri is an app construction toolkit that lets you build software for all major desktop operating systems using web technologies. The core libraries have been written for you in Rust and the user interface can be written using virtually any frontend framework. It includes an optional and tree-shakeable JavaScript API for comfortable low-level system access, a desktop binary bundler with code signing and artifact verification, a secure updater to keep your users on the latest version, an extensive plugin system, and support for OS-level integrations such as notifications and app trays.
Tauri 的使用和扩展一样简单。对于那些刚接触 Rust 编程语言的人来说,Tauri 提供了一个舒适的学习环境,会随着你的成长而发展。一旦你安装了 Rust,创建你的第一个应用只需运行 create-tauri-app。但是,如果你更希望保持在 100% Rust 的安全和舒适环境中,你完全不必使用 Node.js。
🌐 Tauri is as simple to use as it is easy to extend. For those new to the Rust programming language, Tauri provides a comfortable learning environment that will grow with you. Once you have installed Rust, creating your first app is a mere running of create-tauri-app. But you don’t have to use Node.js at all, if you would prefer to remain in the safety and comfort of 100% Rust.
查看我们的快速入门指南以开始使用 Tauri 构建。
🌐 See our Quick Start guides to start building with Tauri.
🌐 Tauri Philosophy
我们为注重安全、尊重隐私并关注环境的软件工程社区创建了 Tauri。
🌐 We built Tauri for the security-focused, privacy-respecting, and environmentally-conscious software engineering community.
🌐 Security
整个项目已经由独立的第三方进行了横向和纵向审计,我们在更新核心时保持非常严格的方式。我们希望你能够确信,主要版本在使用安全性上与其易用性同样可靠。
🌐 The entire project has been horizontally and vertically audited by an independent third party, and we maintain a very strict approach to updating the core. We want you to be confident that major versions are as safe to use as they are ergonomic.

🌐 Privacy
Tauri 允许你构建“本地优先”的应用,无需网络服务器,因此你的用户无需与大科技公司分享他们的数据。使用本地数据库和基于 Rust 的加密从未如此简单。
🌐 Tauri allows you to build “local first” applications without a webserver, so your users don’t have to share their data with big tech. Using local databases and rust based cryptography have never been easier.

🌐 Environment
你制作的应用是精简且高效的,这减少了电力、存储空间和一般自然资源的消耗。每节约的字节都是树上的一片叶子,让它得以生长。
🌐 The apps you make are lean and performant, which reduces electricity, storage space, and general natural resource consumption. Every byte saved is a leaf on a tree that gets to grow.
为了说明这一点,我们整理了一些关于你的应用大小对生态影响的数据。正如你所看到的,即使是很小的尺寸增加也会对环境产生重大影响!
🌐 To illustrate this, we compiled some numbers on the ecological impact of your app’s size. As you can see, even small increases in size have a hefty impact on the environment!
| 应用大小 | 单位时间 (100Mb/s) | 下载次数 | 传输量 | 总时间 (100Mb/s) | 用电量 (kWh) | 产生的 CO2 (kg) | 所需树木 🌳 |
|---|---|---|---|---|---|---|---|
| 3 MB | 240 毫秒 | 1,000 | 3 GB | 24 分钟 | 0.3 | 0.18 | 1 |
| 3 MB | 240 毫秒 | 100,000 | 300 GB | 1.7 天 | 30 | 18 | 1 |
| 3 MB | 240 毫秒 | 10,000,000 | 30 TB | 167 天 | 3,000 | 1,800 | 11 |
| 200 MB | 16 秒 | 1,000 | 200 GB | 4.45 小时 | 20 | 12 | 1 |
| 200 MB | 16 秒 | 100,000 | 20 TB | 18.5 天 | 2,000 | 1,200 | 7 |
| 200 MB | 16 秒 | 10,000,000 | 2 PB | 5 年 | 200,000 | 120,000 | 720 |
| 600 MB | 48 秒 | 1,000 | 0.6 TB | 13 小时 | 60 | 36 | 1 |
| 600 MB | 48 秒 | 100,000 | 60 TB | 54.2 天 | 6,000 | 3,600 | 22 |
| 600 MB | 48 秒 | 10,000,000 | 6 PB | 14.8 年 | 600,000 | 360,000 | 2,160 |
传输 1 GB 信息估计需要 0.1 kWh 的能量,相当于 0.06 公斤的二氧化碳。(https://www.emergeinteractive.com/insights/detail/does-irresponsible-web-development-contribute-to-global-warming/)
🌐 The transmission of 1 GB of information takes an estimated 0.1kWh, which is equal to 0.06 kilograms of CO2. (https://www.emergeinteractive.com/insights/detail/does-irresponsible-web-development-contribute-to-global-warming/)
虽然碳吸收能力可能有所不同,但一般认为一棵树每年可以储存约167千克二氧化碳,或6棵成熟树每年储存1吨二氧化碳 (https://climate.selectra.com/en/news/co2-tree)
🌐 Although the carbon absorption capacity can vary, it is generally considered that a tree can store about 167 kg of CO2 per year, or 1 ton of CO2 per year for 6 mature trees (https://climate.selectra.com/en/news/co2-tree)
🌐 Community
我们知道开源软件是一种促进平等与合作的手段,这就是为什么我们将代码所有权置于Commons Conservancy。你可以放心,代码库永远不会被突然收回或锁在需要付费才能使用的核心功能后面。我们相信开放合作和为所有人提供安全空间。我们有一个开放的工作组,任何有能力的贡献者都可以参与。我们爱你们所有人。❤️
🌐 We know that open source software is a means of fostering equality and collaboration, which is why we placed the ownership of the code at the Commons Conservancy. You can rest assured knowing that the code base will never be rug-pulled or locked behind open-core pay-to-play feature gates. We believe in open collaboration and safe spaces for all. We have an open working group, accessible to any competent contributors. And we love you all. ❤️
🌐 Accolades
以下是人们对 Tauri 的一些评论:
🌐 Here are some of the things people are saying about Tauri:

“Spacedrive 必须在所有平台上都能有本地的使用体验,同时又要轻量、启动瞬间完成,并且使用起来非常快速。使用基于网页的用户界面是不可能做到的——直到现在,多亏了 Tauri。” - Jamie Pine, Spacedrive 创始人
🌐 “Spacedrive had to feel native across all platforms, all while being lightweight, instant to launch and extremely fast to use. This just wasn’t possible with a web-based UI — until now, thanks to Tauri.” - Jamie Pine, Spacedrive Founder
Tauri 有潜力开启新一代桌面软件,它对用户来说感觉像原生应用,但构建起来像网页应用一样简单。
🌐 “Tauri has the potential to unlock a new generation of desktop software that feels native to users but is as easy to build as web apps.”
- Johannes Schickling, Prisma 创始人

Tauri 有望将互联网中臃肿且占用大量内存的应用带来的灾难性负面环境成本降低几个数量级。由此可能产生的任何粗略的货币价值估算,都很容易达到数千亿美元的成本节约,尤其是在我们现代时期,本地计算和存储资源被严重低效利用的情况下。
🌐 “Tauri stands to reduce the disastrously negative environmental costs of bloated and memory-hogging applications on the internet by orders of magnitude. Any rough approximation of monetary value that could result in, would easily reach hundreds of billions in cost savings for our modern era of grossly underutilized local compute and storage resources.”
- Joseph Jacks, OSS Capital 创始人 / 普通合伙人
“凭借其以安全为中心的设计和低内存占用,Tauri 是我们一直在等待的 Electron 替代品。Tauri 让我们能够在使用相同 Web 技术的情况下构建更安全、更高性能的桌面应用,我们非常喜欢。感谢团队的出色工作!
附:迫不及待想要移动端支持!”
🌐 “With its security-focused design and low memory footprint, Tauri is the electron alternative we’ve been waiting for. Tauri has allowed us to build a more secure, more performant desktop app while using the same web technologies, which we love. Thanks to the team for their amazing work! P.S.: Can’t wait for mobile support!”
- Martin Kleinschrodt, Padloc 创始人
🌐 Feedback
你可以访问我们的代码库、提交错误报告、请求功能,或在 GitHub 上加入讨论。人们制作了许多东西,访问 GitHub 上的 awesome-tauri 仓库 是发现和分享的好地方。如果你需要支持或只是想闲聊,你可以 加入我们的 Discord 服务器。
🌐 You can visit our code base, file a bug-report, request a feature, or join the discussion on GitHub. There’s lots of things that people make, and visiting the awesome-tauri repo on GitHub is a great place to discover and share. If you need support or just want to hang out, you can join our Discord server.
Tauri 是 GitHub 上所有编程语言中排名前 200 的项目之一。
🌐 Tauri is one of the top 200 projects on GitHub in all programming languages.

人们喜欢在橙色网站上讨论 Tauri 的优点和缺点:
🌐 People love to discuss what is great and terrible about Tauri on orange websites:

Tauri 在 2021 年版的 JS 状态 排行榜顶部亮相:
🌐 Tauri entered at the top of the charts for the 2021 edition of State of JS:

大型公司的工程师似乎在关注 Tauri 用于未来的项目。
🌐 Engineers at big companies seem to be eying up Tauri for future projects.

🌐 What’s Next?
在1.0版本发布不久之后,团队已经将目光投向Tauri的下一步发展。虽然我们不断致力于改进文档,但我们也在努力进行以下工作:
🌐 Fresh off the heels of the 1.0 release, the team is already setting our sights on the next steps for Tauri. While we continuously work on improving our documentation, we’re also working on:
- 支持 iOS 和 Android 的移动设备
- 替代渲染器
- IPC增强以实现更好的调试
- 运行时插件
- 支持其他语言的额外绑定
我们也受到社区的启发,以了解哪些功能正在被使用,以及哪些新功能将使他们能够开发出更令人惊叹的应用。你的反馈对 Tauri 的未来创新是最重要的!
🌐 We’re also inspired by the community to see which features are being used and what new features will enable them to develop even more amazing applications. Your feedback is the most important thing to Tauri’s future innovation!
🌐 Thank You
特别感谢所有自愿贡献宝贵时间让 Tauri 变得出色的贡献者,以及所有慷慨捐赠使 Tauri 成为可能(并资助了我们大部分审计费用!)的赞助商!
🌐 A special thanks to all our contributors who volunteered their precious time to make Tauri awesome and all our sponsors whose generous donations made Tauri possible (and financed a large portion of our audit!)!
大型行业巨头的支持在维持运营方面真的很有帮助。以下是按字母顺序排列的列表:
🌐 The support of industry giants has been really helpful keeping the lights on. Here’s an alphabetical list:
- Cloudflare 赞助 OSS 更新服务(即将推出)的无限工人
- DigitalOcean 用于补贴运行我们机器人和搜索的 droplets
- GitHub 用于额外的 CI 时间
- Netlify 用于我们的网站托管
- NLNET 通过资助财务支持了 Tauri 的开发
- PACKT 将发布我们的书籍
以下是我们想要特别感谢的几位杰出贡献者:
🌐 Here are a few notable contributors we’d like to thank explicitly:
| GitHub 个人档案 | 贡献 | 仓库 |
|---|---|---|
| @malyn | 修复的 HTTP 流 | wry |
| @wravery | windows-rs 支持, webview2-rs | tao, wry |
| @liushuyu | 为 webkit2gtk 添加了标题功能 | wry |
| @emirror-de | 系统托盘支持 | tao |
| @lorenzolewis | tauri.app 更新 | tauri-docs |
| @probablykasper | 支持更多加速器,重组文档 | tao,tauri-docs |
| @grbd | 添加了一个示例,用于将 tauri 用作 C++ DLL | tauri |
| @youngsing | 添加了 macOS 透明效果 | tauri-plugin-vibrancy |
| @lemarier | 更新程序、菜单、系统托盘、iOS、剪贴板 API、字节流等 | wry、tao、tauri |
| @JonasKruckenberg | Tauri 插件升级与文档重构 | tauri-plugin-*, tauri-docs |
| @ImmaZoni | macOS 和 Windows 的代码签名指南 | tauri-docs |
| @chippers | 隔离模式、shell 范围、编译时代码生成以及其他若干安全功能 | tauri |
| @fabianlars | 社区支持,AppImage 修复,代码审查 | 所有仓库,主要是 tauri,tauri-docs |
| @amrbashir | TAO 和 WRY 功能与修复,整体操作系统专家 | tao,wry |
| @wusyong | TAO 和 WRY 创始人及研究员 | tao,wry |
| @nklayman | 自定义协议 | tauri |
我们想以强调来自少数核心 Tauri 贡献者的评论来结束:
🌐 We’d like to wrap up by highlighting comments from just a small handful of core Tauri contributors:
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
我们提供的窗口定制化服务,但那是因为这是我主要负责的部分。我也对 Tauri 如何改变一些人的思维方式并帮助他们默认构建安全应用感到兴奋。
你在 Tauri 中最自豪的时刻/贡献是什么?
🌐 What is your proudest moment/contribution with Tauri?
大概是当我为了只保留三行代码而删除了大约二十行代码的时候。我自己写了这两种版本,这就是为什么它感觉特别,因为这是我作为开发者成长了多少的一个标志。
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
安装 CLI 时无需使用
--locked。
你在 Tauri 中最自豪的时刻/贡献是什么?
🌐 What is your proudest moment/contribution with Tauri?
构建隔离模式
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
文件拖放。
你在 Tauri 中最自豪的时刻/贡献是什么?
🌐 What is your proudest moment/contribution with Tauri?
质量/稳定性:追踪并修复段错误:https://github.com/h4llow3En/mac-notification-sys/pull/40
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
“全部”是一个有效的答案吗?
你在 Tauri 中最自豪的时刻/贡献是什么?
🌐 What is your proudest moment/contribution with Tauri?
嗯,大概是在我被邀请加入团队的时候。一次又一次修复 AppImages 排在紧随其后的第二位…
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
自动更新功能非常棒,但插件对我来说非常宝贵,绝对是 Tauri 最有前景的功能!
你在 Tauri 中最自豪的时刻/贡献是什么?
🌐 What is your proudest moment/contribution with Tauri?
管理 tauri-awesome 仓库。看到这么多陌生人用你一直在做的工作来构建很酷的东西。那是一种非常棒的感觉。
是什么激励你加入 Tauri 的?
🌐 What inspired you to join Tauri?
我正在制作一些 Tauri 应用,并且刚刚发现了一些我想实现的功能/改进。
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
这听起来可能很傻,但我喜欢自定义东西,所以几乎可以通过我们的窗口外观制作任何东西的可能性很棒。
你在 Tauri 中最自豪的时刻/贡献是什么?
🌐 What is your proudest moment/contribution with Tauri?
> 创建我们今天所知的 Tauri 文档的基础,并尝试提供清晰易懂的文档。
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
几乎所有事情,把 Tauri 从概念验证阶段带到稳定阶段是一个巨大的里程碑。
你在 Tauri 中最自豪的时刻/贡献是什么?
🌐 What is your proudest moment/contribution with Tauri?
TAO 以及所有底层功能(菜单、托盘等)、基准测试和 iOS 的概念验证。
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
整体资源效率。我们都有过这样的经历:机器上运行着一堆“原生”网页应用,结果整台机器都卡住了。我已经准备好迎接那些小体积的应用包了!
你在 Tauri 中最自豪的时刻/贡献是什么?
🌐 What is your proudest moment/contribution with Tauri?
整个 tauri.app 网站。当我加入时,它已经处于一个非常好的状态,但我知道我可以帮助将它提升到下一个水平。即使是为侧边栏选择一个标题这样的事情,也可能因为各种讨论而花费很长时间,但归根结底,通过我们的共同努力,我们都能得到最好的成果。
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
插件!
现在触发完成了,你最兴奋的是什么?
🌐 What are you most excited about now that the launch is through?
移动端和即将推出的 egui 集成发布
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
自动更新器。实现如此复杂的功能真的很难,而 Tauri 做得非常出色。
你在 Tauri 中最自豪的时刻/贡献是什么?
🌐 What is your proudest moment/contribution with Tauri?
使基于自定义协议的资源加载器工作,尤其是在 Windows 上。
secdude
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
默认情况下按条件编译功能。
你在 Tauri 中最自豪的时刻/贡献是什么?
🌐 What is your proudest moment/contribution with Tauri?
:耸肩: v1 我猜
你对哪个功能最感兴趣?
🌐 What feature are you most excited about?
自动更新器,我想。内置的 OTA 功能感觉非常方便。
你在 Tauri 中最自豪的时刻/贡献是什么?
🌐 What is your proudest moment/contribution with Tauri?
在此提交中发布了 wry crate 和特定内容:https://github.com/tauri-apps/wry/commit/722e1212a4795f5f81638667cbd31bc53a5d27ed
Tauri 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站