特性
📄️ 制作你自己的 CLI
Tauri enables your app to have a CLI through clap, a robust command line argument parser. With a simple CLI definition in your tauri.conf.json file, you can define your interface and read its argument matches map on JavaScript and/or Rust.
📄️ 从前端调用 Rust
Tauri提供了一个简单而强大的 command 系统,用于从 web 应用程序调用 Rust 函数。 命令可以接受参数并返回值。 它们也可以返回错误并且是 async。
📄️ 事件
The Tauri event system is a multi-producer multi-consumer communication primitive that allows message passing between the frontend and the backend. It is analogous to the command system, but a payload type check must be written on the event handler and it simplifies communication from the backend to the frontend, working like a channel.
📄️ 图标
Tauri 发布了一个基于其 logo 的默认图标集。 这不是在发布应用程序时想要的。 为了纠正这种常见情况,Tauri提供了 icon 命令,它将需要输入文件(默认 "./app-icon.png")并创建各种平台所需的所有图标。
📄️ 窗口菜单
本机应用程序菜单可以附加到窗口。
📄️ 多窗口
管理单个应用程序上的多个窗口。
📄️ Tauri 插件
插件允许连接到 Tauri 应用程序生命周期并引入新命令。
📄️ Splashscreen
If your webpage could take some time to load, or if you need to run an initialization procedure in Rust before displaying your main window, a splashscreen could improve the loading experience for the user.
📄️ System Tray
Native application system tray.
📄️ Window Customization
Tauri provides lots of options for customizing the look and feel of your app's window. You can create custom titlebars, have transparent windows, enforce size constraints, and more.