需先按官方文档安装各系统前置依赖(如 Linux 的 webkit2gtk);Linux 上 Tauri v1 与 v2 依赖的 webkit2gtk 版本不同,需对应选择;自更新功能仅桌面端可用。

tauri
tauri-appsApache-2.0活跃维护用 Rust 做后端、Web 前端写界面的跨平台桌面与移动应用框架,打包体积小、启动快,还能复用系统 WebView 提升安全性。
Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
npm create tauri-app@latestREADME 未说明显存或 GPU 要求;平台支持 Windows 10+、macOS 10.15+、iOS/iPadOS 9+、Android 7+(当前 8+),Linux 需 webkit2gtk 4.0(v1)或 4.1(v2)。
用任意 Web 前端构建体积小、速度快、更安全的桌面与移动应用
用 Rust 做后端、Web 前端写界面的跨平台桌面与移动应用框架,打包体积小、启动快,还能复用系统 WebView 提升安全性。
核心能力
- 后端为 Rust 二进制,前端通过 API 与其交互
- 复用系统 WebView 渲染界面,不打包浏览器内核
- 内置打包器生成 .app/.dmg/.deb/.rpm/.AppImage 与 Windows 安装包
- 内置桌面端自更新、系统托盘图标与原生通知
- 使用原生 WebView 协议,不启动本地 localhost 服务
容易踩的坑
- tauri-runtime-cef-v3.0.0-alpha.7tauri-runtime-cef v3.0.0-alpha.72026-11-06 · 2026-11-06 11:59 UTC
查看更新说明
Fetching advisory database from `https://github.com/RustSec/advisory-db.git` Loaded 1409 security advisories (from /home/runner/.cargo/advisory-db) Updating crates.io index Scanning Cargo.lock for vulnerabilities (1154 crate dependencies) Crate: fxhash Version: 0.2.1 Warning: unmaintained Title: fxhash - no longer maintained Date: 2025-09-05 ID: RUSTSEC-2025-0057 URL: https://rustsec.org/advisories/RUSTSEC-2025-0057 Crate: paste Version: 1.0.15 Warning: unmaintained Title: paste - no longer maintained Date: 2024-10-07 ID: RUSTSEC-2024-0436 URL: https://rustsec.org/advisories/RUSTSEC-2024-0436 Crate: rustybuzz Version: 0.20.1 Warning: unmaintained Title: `rustybuzz` is unmaintained Date: 2026-07-11 ID: RUSTSEC-2026-0206 URL: https://rustsec.org/advisories/RUSTSEC-2026-0206 Crate: ttf-parser Version: 0.25.1 Warning: unmaintained Title: `ttf-parser` is unmaintained Date: 2026-06-28 ID: RUSTSEC-2026-0192 URL: https://rustsec.org/advisories/RUSTSEC-2026-0192 Crate: zbus_names Version: 4.3.4 Warning: unmaintained Title: `zbus_names` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0371 URL: https://rustsec.org/advisories/RUSTSEC-2026-0371 Crate: zvariant Version: 5.15.0 Warning: unmaintained Title: `zvariant` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0370 URL: https://rustsec.org/advisories/RUSTSEC-2026-0370 Crate: zvariant_derive Version: 5.15.0 Warning: unmaintained Title: `zvariant_derive` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0372 URL: https://rustsec.org/advisories/RUSTSEC-2026-0372 Crate: tokio Version: 1.53.2 Warning: unsound Title: `AsyncFd::new` and related constructors violate I/O safety Date: 2026-10-13 ID: RUSTSEC-2026-0386 URL: https://rustsec.org/advisories/RUSTSEC-2026-0386 Crate: async-executor Version: 1.14.0 Warning: yanked Crate: num-modular Version: 0.6.6 Warning: yanked warning: 10 allowed warnings found[3.0.0-alpha.7]
Bug Fixes
40a2d81d9(#16289 by @redvelo) Fixed F11 and the HTML Fullscreen API not updating the native window's fullscreen state on CEF.
Dependencies
- Upgraded to
[email protected] - Upgraded to
[email protected]
Updating crates.io index Packaging tauri-runtime-cef v3.0.0-alpha.7 (/home/runner/work/tauri/tauri/crates/tauri-runtime-cef) Updating crates.io index Packaged 73 files, 885.8KiB (233.6KiB compressed) Verifying tauri-runtime-cef v3.0.0-alpha.7 (/home/runner/work/tauri/tauri/crates/tauri-runtime-cef) Downloading crates ... Downloaded dirs v6.0.0 Downloaded document-features v0.2.12 Downloaded as-raw-xcb-connection v1.0.1 Downloaded phf v0.10.1 Downloaded phf_generator v0.11.3 Downloaded gdk-pixbuf v0.22.0 Downloaded graphene-sys v0.22.9 Downloaded phf_codegen v0.11.3 Downloaded phf_shared v0.10.0 Downloaded rand_pcg v0.2.1 Downloaded futf v0.1.5 Downloaded fxhash v0.2.1 Downloaded cargo-platform v0.3.3 Downloaded cfg-expr v0.20.10 Downloaded cssparser-macros v0.6.1 Downloaded cursor-icon v1.2.0 Downloaded dioxus-debug-cell v0.1.1 Downloaded dlib v0.5.3 Downloaded downcast-rs v1.2.1 Downloaded download-cef v3.0.0 Downloaded getrandom v0.1.16 Downloaded gobject-sys v0.22.9 Downloaded objc2-encode v4.1.0 Downloaded proc-macro-hack v0.5.20+deprecated Downloaded target-lexicon v0.13.5 Downloaded unit-prefix v0.5.2 Downloaded utf-8 v0.7.6 Downloaded bl - tauri-runtime-wry-v3.0.0-alpha.6tauri-runtime-wry v3.0.0-alpha.62026-11-06 · 2026-11-06 11:55 UTC
查看更新说明
Fetching advisory database from `https://github.com/RustSec/advisory-db.git` Loaded 1409 security advisories (from /home/runner/.cargo/advisory-db) Updating crates.io index Scanning Cargo.lock for vulnerabilities (1154 crate dependencies) Crate: fxhash Version: 0.2.1 Warning: unmaintained Title: fxhash - no longer maintained Date: 2025-09-05 ID: RUSTSEC-2025-0057 URL: https://rustsec.org/advisories/RUSTSEC-2025-0057 Crate: paste Version: 1.0.15 Warning: unmaintained Title: paste - no longer maintained Date: 2024-10-07 ID: RUSTSEC-2024-0436 URL: https://rustsec.org/advisories/RUSTSEC-2024-0436 Crate: rustybuzz Version: 0.20.1 Warning: unmaintained Title: `rustybuzz` is unmaintained Date: 2026-07-11 ID: RUSTSEC-2026-0206 URL: https://rustsec.org/advisories/RUSTSEC-2026-0206 Crate: ttf-parser Version: 0.25.1 Warning: unmaintained Title: `ttf-parser` is unmaintained Date: 2026-06-28 ID: RUSTSEC-2026-0192 URL: https://rustsec.org/advisories/RUSTSEC-2026-0192 Crate: zbus_names Version: 4.3.4 Warning: unmaintained Title: `zbus_names` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0371 URL: https://rustsec.org/advisories/RUSTSEC-2026-0371 Crate: zvariant Version: 5.15.0 Warning: unmaintained Title: `zvariant` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0370 URL: https://rustsec.org/advisories/RUSTSEC-2026-0370 Crate: zvariant_derive Version: 5.15.0 Warning: unmaintained Title: `zvariant_derive` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0372 URL: https://rustsec.org/advisories/RUSTSEC-2026-0372 Crate: tokio Version: 1.53.2 Warning: unsound Title: `AsyncFd::new` and related constructors violate I/O safety Date: 2026-10-13 ID: RUSTSEC-2026-0386 URL: https://rustsec.org/advisories/RUSTSEC-2026-0386 Crate: async-executor Version: 1.14.0 Warning: yanked Crate: num-modular Version: 0.6.6 Warning: yanked warning: 10 allowed warnings found[3.0.0-alpha.6]
Dependencies
- Upgraded to
[email protected] - Upgraded to
[email protected]
Breaking Changes
78f49ba39(#16077 by @amrbashir) Removed the per-window event listener registry, following its removal fromtauri-runtime.tauri-runtime-wryno longer exportsWindowEventHandler,WindowEventListeners,WebviewEventHandlerorWebviewEventListeners, andWindowMessage::AddEventListener/WebviewMessage::AddEventListenerare gone.
Updating crates.io index Packaging tauri-runtime-wry v3.0.0-alpha.6 (/home/runner/work/tauri/tauri/crates/tauri-runtime-wry) Updating crates.io index Packaged 24 files, 348.1KiB (79.2KiB compressed) Verifying tauri-runtime-wry v3.0.0-alpha.6 (/home/runner/work/tauri/tauri/crates/tauri-runtime-wry) Downloading crates ... Downloaded cairo-rs v0.18.5 Downloaded dlopen2 v0.8.2 Downloaded gdkwayland-sys v0.18.2 Downloaded heck v0.4.1 Downloaded gdkx11 v0.18.2 Downloaded atk-sys v0.18.2 Downloaded gdkx11-sys v0.18.2 Downloaded memoffset v0.9.1 Downloaded serde_spanned v0.6.9 Downloaded proc-macro-crate v1.3.1 Downloaded version-compare v0.2.1 Downloaded proc-macro-error-attr v1.0.4 Downloaded toml_datetime v0.6.3 Downloaded cairo-sys-rs v0.18.2 Downloaded gdk-pixbuf-sys v0.18.0 Downloaded gtk3-macros v0.18.2 Downloaded dlopen2_derive v0.4.3 Downloaded field-offset v0.3.6 Downloaded proc-macro-crate v2.0.2 Downloaded gdk-pixbuf v0.18.5 Downloa - Upgraded to
- tauri-v3.0.0-alpha.6tauri v3.0.0-alpha.6最新正式版2026-11-06 · 2026-11-06 11:54 UTC
Fetching advisory database from `https://github.com/RustSec/advisory-db.git` Loaded 1409 security advisories (from /home/runner/.cargo/advisory-db) Updating crates.io index Scanning Cargo.lock for vulnerabilities (1154 crate dependencies) Crate: fxhash Version: 0.2.1 Warning: unmaintained Title: fxhash - no longer maintained Date: 2025-09-05 ID: RUSTSEC-2025-0057 URL: https://rustsec.org/advisories/RUSTSEC-2025-0057 Crate: paste Version: 1.0.15 Warning: unmaintained Title: paste - no longer maintained Date: 2024-10-07 ID: RUSTSEC-2024-0436 URL: https://rustsec.org/advisories/RUSTSEC-2024-0436 Crate: rustybuzz Version: 0.20.1 Warning: unmaintained Title: `rustybuzz` is unmaintained Date: 2026-07-11 ID: RUSTSEC-2026-0206 URL: https://rustsec.org/advisories/RUSTSEC-2026-0206 Crate: ttf-parser Version: 0.25.1 Warning: unmaintained Title: `ttf-parser` is unmaintained Date: 2026-06-28 ID: RUSTSEC-2026-0192 URL: https://rustsec.org/advisories/RUSTSEC-2026-0192 Crate: zbus_names Version: 4.3.4 Warning: unmaintained Title: `zbus_names` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0371 URL: https://rustsec.org/advisories/RUSTSEC-2026-0371 Crate: zvariant Version: 5.15.0 Warning: unmaintained Title: `zvariant` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0370 URL: https://rustsec.org/advisories/RUSTSEC-2026-0370 Crate: zvariant_derive Version: 5.15.0 Warning: unmaintained Title: `zvariant_derive` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0372 URL: https://rustsec.org/advisories/RUSTSEC-2026-0372 Crate: tokio Version: 1.53.2 Warning: unsound Title: `AsyncFd::new` and related constructors violate I/O safety Date: 2026-10-13 ID: RUSTSEC-2026-0386 URL: https://rustsec.org/advisories/RUSTSEC-2026-0386 Crate: async-executor Version: 1.14.0 Warning: yanked Crate: num-modular Version: 0.6.6 Warning: yanked warning: 10 allowed warnings found[3.0.0-alpha.6]
Bug Fixes
78f49ba39(#16077 by @amrbashir)taurinow holds the per-window/per-webview event listeners itself and feeds them from the run event loop, which fixesWindow::on_window_eventandWebview::on_webview_eventmissing events fired before the registration reached the event loop.78f49ba39(#16077 by @amrbashir) FixedWebview::closeon a handle to an already closed webview tearing down the state and event listeners of a newer webview reusing its label.78f49ba39(#16077 by @amrbashir) Fixed a window recreated under the same label while the previous one is being destroyed (from aWindowEvent::Destroyedhandler or a plugin'son_event) losing the event listeners registered on it in the meantime.
Dependencies
- Upgraded to
[email protected]
Updating crates.io index Packaging tauri v3.0.0-alpha.6 (/home/runner/work/tauri/tauri/crates/tauri) Updating crates.io index warning: package `async-executor v1.14.0` in Cargo.lock is yanked in registry `crates-io` | = help: consider updating to a version tha - tauri-runtime-v3.0.0-alpha.5tauri-runtime v3.0.0-alpha.52026-11-06 · 2026-11-06 11:54 UTC
查看更新说明
Fetching advisory database from `https://github.com/RustSec/advisory-db.git` Loaded 1409 security advisories (from /home/runner/.cargo/advisory-db) Updating crates.io index Scanning Cargo.lock for vulnerabilities (1154 crate dependencies) Crate: fxhash Version: 0.2.1 Warning: unmaintained Title: fxhash - no longer maintained Date: 2025-09-05 ID: RUSTSEC-2025-0057 URL: https://rustsec.org/advisories/RUSTSEC-2025-0057 Crate: paste Version: 1.0.15 Warning: unmaintained Title: paste - no longer maintained Date: 2024-10-07 ID: RUSTSEC-2024-0436 URL: https://rustsec.org/advisories/RUSTSEC-2024-0436 Crate: rustybuzz Version: 0.20.1 Warning: unmaintained Title: `rustybuzz` is unmaintained Date: 2026-07-11 ID: RUSTSEC-2026-0206 URL: https://rustsec.org/advisories/RUSTSEC-2026-0206 Crate: ttf-parser Version: 0.25.1 Warning: unmaintained Title: `ttf-parser` is unmaintained Date: 2026-06-28 ID: RUSTSEC-2026-0192 URL: https://rustsec.org/advisories/RUSTSEC-2026-0192 Crate: zbus_names Version: 4.3.4 Warning: unmaintained Title: `zbus_names` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0371 URL: https://rustsec.org/advisories/RUSTSEC-2026-0371 Crate: zvariant Version: 5.15.0 Warning: unmaintained Title: `zvariant` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0370 URL: https://rustsec.org/advisories/RUSTSEC-2026-0370 Crate: zvariant_derive Version: 5.15.0 Warning: unmaintained Title: `zvariant_derive` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0372 URL: https://rustsec.org/advisories/RUSTSEC-2026-0372 Crate: tokio Version: 1.53.2 Warning: unsound Title: `AsyncFd::new` and related constructors violate I/O safety Date: 2026-10-13 ID: RUSTSEC-2026-0386 URL: https://rustsec.org/advisories/RUSTSEC-2026-0386 Crate: async-executor Version: 1.14.0 Warning: yanked Crate: num-modular Version: 0.6.6 Warning: yanked warning: 10 allowed warnings found[3.0.0-alpha.5]
Breaking Changes
-
78f49ba39(#16077 by @amrbashir) RemovedWindowDispatch::on_window_eventandWebviewDispatch::on_webview_event, along with theWindowEventIdandWebviewEventIdtypes. Runtimes already report every window and webview event throughRunEvent::WindowEvent/RunEvent::WebviewEvent, so the per-window listener registries each runtime kept were a duplicate of that stream.Migration: custom runtimes should drop their
on_window_event/on_webview_eventimplementations and their listener storage; emittingRunEvent::WindowEventandRunEvent::WebviewEventis now the only thing required to deliver events.
Updating crates.io index Packaging tauri-runtime v3.0.0-alpha.5 (/home/runner/work/tauri/tauri/crates/tauri-runtime) Updating crates.io index Packaged 17 files, 260.1KiB (59.9KiB compressed) Verifying tauri-runtime v3.0.0-alpha.5 (/home/runner/work/tauri/tauri/crates/tauri-runtime) Downloading crates ... Downloaded cookie v0.18.2 Downloaded dpi v0.1.2 Downloaded raw-window-handle v0.6.2 Compiling strsim v0.11.1 Compiling time-macros v0.2.32 Compiling phf_shared v0.13.1 Compiling percent-encoding v2.3.2 Compiling darling_core v0.24.1 Compiling phf_generator v0.13.1 Compiling regex-automata v0.4.18 Compiling form_urlencoded v1.2.2 Compiling idna v1.1.0 Compiling time v0.3.55 Compiling syn v2.0.119 Compiling darling_macro v0.24.1 Compiling darling v0.24 -
- tauri-bundler-v3.0.0-alpha.5tauri-bundler v3.0.0-alpha.52026-11-06 · 2026-11-06 11:53 UTC
查看更新说明
Fetching advisory database from `https://github.com/RustSec/advisory-db.git` Loaded 1409 security advisories (from /home/runner/.cargo/advisory-db) Updating crates.io index Scanning Cargo.lock for vulnerabilities (1154 crate dependencies) Crate: fxhash Version: 0.2.1 Warning: unmaintained Title: fxhash - no longer maintained Date: 2025-09-05 ID: RUSTSEC-2025-0057 URL: https://rustsec.org/advisories/RUSTSEC-2025-0057 Crate: paste Version: 1.0.15 Warning: unmaintained Title: paste - no longer maintained Date: 2024-10-07 ID: RUSTSEC-2024-0436 URL: https://rustsec.org/advisories/RUSTSEC-2024-0436 Crate: rustybuzz Version: 0.20.1 Warning: unmaintained Title: `rustybuzz` is unmaintained Date: 2026-07-11 ID: RUSTSEC-2026-0206 URL: https://rustsec.org/advisories/RUSTSEC-2026-0206 Crate: ttf-parser Version: 0.25.1 Warning: unmaintained Title: `ttf-parser` is unmaintained Date: 2026-06-28 ID: RUSTSEC-2026-0192 URL: https://rustsec.org/advisories/RUSTSEC-2026-0192 Crate: zbus_names Version: 4.3.4 Warning: unmaintained Title: `zbus_names` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0371 URL: https://rustsec.org/advisories/RUSTSEC-2026-0371 Crate: zvariant Version: 5.15.0 Warning: unmaintained Title: `zvariant` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0370 URL: https://rustsec.org/advisories/RUSTSEC-2026-0370 Crate: zvariant_derive Version: 5.15.0 Warning: unmaintained Title: `zvariant_derive` is unmaintained Date: 2026-10-16 ID: RUSTSEC-2026-0372 URL: https://rustsec.org/advisories/RUSTSEC-2026-0372 Crate: tokio Version: 1.53.2 Warning: unsound Title: `AsyncFd::new` and related constructors violate I/O safety Date: 2026-10-13 ID: RUSTSEC-2026-0386 URL: https://rustsec.org/advisories/RUSTSEC-2026-0386 Crate: async-executor Version: 1.14.0 Warning: yanked Crate: num-modular Version: 0.6.6 Warning: yanked warning: 10 allowed warnings found[3.0.0-alpha.5]
Bug Fixes
f424d43fb(#16332 by @amrbashir) Fixed the German NSIS installer defining theolderandunknownstrings under translated identifiers (älterandunbekannt), which made makensis emitwarning 6040: LangString "older" is not set in language table of language Germanand left the version kind blank in the "An $R4 version of ... is installed on your system" prompt.f424d43fb(#16332 by @amrbashir) Fixed malformed tokens in the Italian and Swedish NSIS language files.
Updating crates.io index Packaging tauri-bundler v3.0.0-alpha.5 (/home/runner/work/tauri/tauri/crates/tauri-bundler) Updating crates.io index warning: package `num-modular v0.6.6` in Cargo.lock is yanked in registry `crates-io` | = help: consider updating to a version that is not yanked Packaged 78 files, 1.1MiB (409.3KiB compressed) Verifying tauri-bundler v3.0.0-alpha.5 (/home/runner/work/tauri/tauri/crates/tauri-bundler) Downloading crates ... Downloaded aead v0.5.2 Downloaded serdect v0.2.0 Downloaded sha1_smol v1.0.1 Downloaded sha1 v0.11.0 Downloaded toml_writer v1.1.3+spec-1.1.0 Downloaded ureq-proto v0.6.4 Downloaded winnow v1.0.4 Downloaded lebe v0.5.3 Downloaded memsec v0.7.0 Downloaded sha1collisiondetection v0.3.4
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Introduction
Tauri is a framework for building tiny, blazingly fast binaries for all major operating systems. Developers can integrate any front-end framework that compiles to HTML, JS and CSS for building their user interface. The backend of the application is a rust-sourced binary with an API that the front-end can interact with.
The user interface in Tauri apps currently leverages tao as a window handling library on macOS, Windows, Linux, Android and iOS. To render your application, Tauri uses WRY, a library which provides a unified interface to the system webview, leveraging WKWebView on macOS & iOS, WebView2 on Windows, WebKitGTK on Linux and Android System WebView on Android.
To learn more about the details of how all of these pieces fit together, please consult this ARCHITECTURE.md document.
Getting Started
If you are interested in making a tauri app, please visit the documentation website.
The quickest way to get started is to install the prerequisites for your system and create a new project with create-tauri-app. For example with npm:
npm create tauri-app@latest
Features
The list of Tauri's features includes, but is not limited to:
- Built-in app bundler to create app bundles in formats like
.app,.dmg,.deb,.rpm,.AppImageand Windows installers like.exe(via NSIS) and.msi(via WiX). - Built-in self updater (desktop only)
- System tray icons
- Native notifications
- Native WebView Protocol (tauri doesn't create a localhost http(s) server to serve the WebView contents)
- GitHub action for streamlined CI
- VS Code extension
Platforms
Tauri currently supports development and distribution on the following platforms:
| Platform | Versions |
|---|---|
| Windows | 10 and above |
| macOS | 10.15 and above |
| Linux | webkit2gtk 4.0 for Tauri v1 (for example Ubuntu 18.04). webkit2gtk 4.1 for Tauri v2 (for example Ubuntu 22.04). |
| iOS/iPadOS | 9 and above |
| Android | 7 and above (currently 8 and above) |
Contributing
Before you start working on something, it's best to check if there is an existing issue first. It's also a good idea to stop by the Discord server and confirm with the team if it makes sense or if someone else is already working on it.
Please make sure to read the Contributing Guide before making a pull request.
Thank you to everyone contributing to Tauri!
Documentation
Documentation in a polyglot system is a tricky proposition. To this end, we prefer to use inline documentation in the Rust & JS source code as much as possible. Check out the hosting repository for the documentation site for further information: https://github.com/tauri-apps/tauri-docs
Partners
For the complete list of sponsors please visit our website and Open Collective.
Organization
Tauri aims to be a sustainable collective based on principles that guide sustainable free and open software communities. To this end it has become a Programme within the Commons Conservancy, and you can contribute financially via Open Collective.
Licenses
Code: (c) 2015 - Present - The Tauri Programme within The Commons Conservancy.
MIT or MIT/Apache 2.0 where applicable.
Logo: CC-BY-NC-ND
- Original Tauri Logo Designs by Alve Larsson, Daniel Thompson-Yvetot and Guillaume Chau