返回对比页
跨平台 UI

Perry vs Tauri

Tauri combines a compiled Rust core with HTML, CSS, and JavaScript rendered in an operating-system webview. Perry compiles supported TypeScript through LLVM and maps Perry UI to platform widgets. Tauri benefits from web frontend compatibility; Perry targets a no-webview UI model.

技术事实和测量说明以英文为准,以避免不同翻译之间出现偏差。

什么是 Tauri?

Tauri's official architecture documentation describes a Rust core plus HTML rendered in a webview, with communication between the webview and native side. It uses the operating system's webview rather than bundling a browser engine into every application.

什么是 Perry?

Perry parses TypeScript and JavaScript with SWC and compiles supported code ahead of time through LLVM. Native builds do not require an external Node.js installation or JavaScript engine, but they do statically link the Perry runtime and garbage collector. Perry is pre-1.0, implements a practical language and Node.js subset, and offers an optional embedded V8 fallback for code that needs engine semantics.

并排对比

特性PerryTauri
UI renderingPlatform widgets where supportedHTML/CSS/JavaScript in the system webview
Native-side languageTypeScript compiled through LLVMRust core, with optional Swift/Kotlin/plugin bindings
Browser engine distributionNo browser engine for native UIUses the OS webview instead of bundling one
Frontend ecosystemPerry UIWeb frameworks and browser tooling
Targets11 documented targets plus previewDesktop and mobile targets documented by Tauri

Perry 胜出之处

  • +Real platform-widget UI model
  • +One TypeScript language for supported UI and application logic
  • +Wearable, TV, and Web/WASM target scope

Tauri 胜出之处

  • +Mature web frontend ecosystem
  • +Small apps without bundling a browser engine
  • +Rust plugin and backend ecosystem
  • +Broader compatibility with existing HTML/CSS frontends

何时选择 Perry

Choose Perry when platform widgets and its broader target model outweigh the smaller current ecosystem.

何时选择 Tauri

Choose Tauri when an HTML/CSS frontend, system webview, and Rust-native backend/plugin model fit your team and product.

结论

Both avoid Electron's bundled-browser model, but Tauri remains a webview architecture while Perry uses platform widgets. That difference matters more than an isolated binary-size number.

资料来源

试用 Perry

今天就把你的 TypeScript 编译为原生代码。

开始使用