Tauri 理念
Tauri 是一个工具包,可帮助开发者为主要桌面平台开发应用 - 使用几乎任何现有的前端框架。核心是用 Rust 构建的,CLI 利用 Node.js,使 Tauri 成为一种真正的多语言方法来创建和维护出色的应用。
¥Tauri is a toolkit that helps developers make applications for the major desktop platforms - using virtually any frontend framework in existence. The core is built with Rust, and the CLI leverages Node.js making Tauri a genuinely polyglot approach to creating and maintaining great apps.
安全首先
¥Security First
在当今世界,每个诚实的威胁模型都假设用户的设备已被入侵。这使应用开发者陷入了复杂的境地,因为如果设备已经处于危险之中,如何信任软件?
¥In today’s world, every honest threat model assumes that the user’s device has already been compromised. This puts app developers in a complicated situation because if the device is already at risk, how can the software be trusted?
纵深防御是我们采取的方法。我们希望你能够采取一切可能的预防措施,尽量减少你向攻击者展示的表面积。Tauri 允许你选择要发送的 API 端点,是否要在应用中内置本地主机服务器,它甚至会在运行时随机化功能句柄。这些和其他技术构成了安全基线,可为你和你的用户提供支持。
¥Defense in depth is the approach we’ve taken. We want you to be able to take every precaution possible to minimize the surface area you present to attackers. Tauri lets you choose which API endpoints to ship, whether or not you want a localhost server built into your app, and it even randomizes functional handles at runtime. These and other techniques form a secure baseline that empowers you and your users.
通过使静态攻击变得极其困难并将系统彼此隔离来减缓攻击者的速度是游戏的名称。如果你来自 Electron 生态系统 - 放心吧 - 默认情况下,Tauri 仅提供二进制文件,而不是 ASAR 文件。
¥Slowing down attackers by making static attacks crushingly difficult and isolating systems from one another is the name of the game. And if you are coming from the Electron ecosystem - rest assured - by default Tauri only ships binaries, not ASAR files.
通过选择以安全性为指导力量构建 Tauri,我们为你提供了采取主动安全态势的各种机会。
¥By choosing to build Tauri with security as a guiding force, we give you every opportunity to take a proactive security posture.
多语言,而不是孤岛
¥Polyglots, not Silos
大多数当代框架都使用单一语言范式,因此陷入知识和习语的泡沫中。这可以很好地适用于某些小众应用,但它也会助长一种部落主义。
¥Most contemporary frameworks use a single language paradigm and are therefore trapped in a bubble of knowledge and idiom. This can work well for certain niche applications, but it also fosters a kind of tribalism.
从 React、Angular 和 Vue 开发社区在其堆栈上挤在一起的方式可以看出,最终很少产生交叉影响。
¥This can be seen in the way that the React, Angular, and Vue development communities huddle on their stacks, ultimately breeding very little cross-pollination.
在 Rust 与 Node 与 C++ 的战场上也可以看到同样的情况,强硬派坚持自己的立场,拒绝跨社区合作。
¥This same situation can be seen in the Rust vs. Node vs. C++ battlefields, where hardliners take their stances and refuse to collaborate across communities.
如今,Tauri 使用 Rust 作为后端 - 但在不久的将来,其他后端(如 Go、Nim、Python、Csharp 等)也将成为可能。这是因为我们正在维护与 webview 组织的官方 Rust 绑定,并计划让你根据需要切换后端。由于我们的 API 可以用任何具有 C 互操作性的语言实现,因此完全合规只需一个 PR 即可。
¥Today, Tauri uses Rust for the backend - but in the not too distant future, other backends like Go, Nim, Python, Csharp, etc. will be possible. This is because we are maintaining the official Rust bindings to the webview organization and plan to let you switch out the backend for your needs. Since our API can be implemented in any language with C interop, full compliance is only a PR away.
诚实开源
¥Honest Open Source
如果没有社区,这一切都没有任何意义。如今,软件社区是一个很棒的地方,人们在这里互相帮助,创造出令人惊叹的东西 - 开源是其中非常重要的一部分。
¥None of this would make any sense without a community. Today software communities are amazing places where people help each other and make awesome things - open source is a very big part of that.
开源对不同的人来说意味着不同的东西,但大多数人都会同意它有助于支持自由。当软件不尊重你的权利时,它看起来可能不公平,并且可能会以不道德的方式操作,从而损害你的自由。
¥Open source means different things to different people, but most will agree that it serves to support freedom. When software doesn’t respect your rights, then it can seem unfair and potentially compromise your freedoms by operating in unethical ways.
这就是为什么我们为 FLOSS 倡导者可以使用 Tauri 构建 “certifiably” 开源应用并可以包含在 FSF 认可的 GNU/Linux 发行版中而感到自豪。
¥This is why we are proud that FLOSS advocates can build applications with Tauri that are “certifiably” open source and can be included in FSF endorsed GNU/Linux distributions.
未来
¥The Future
Tauri 的未来取决于你的参与和贡献。尝试一下,提交问题,加入工作组或捐款 - 每一份贡献都很重要。无论如何,请联系我们!!!
¥Tauri’s future depends on your involvement and contributions. Try it out, file issues, join a working group or make a donation - every contribution is important. Please, at any rate, do get in touch!!!
Tauri v2.4 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站