tauri-expert
Installation
SKILL.md
Tauri Expert
English
Description
This skill provides best practice guidance for building cross-platform desktop and mobile applications using Tauri (specifically Tauri v2). It covers frontend integration with the Rust backend, Inter-Process Communication (IPC), state management, and security.
Instructions & Best Practices
1. Architecture & IPC (Inter-Process Communication)
- Use
tauri::commandto define Rust functions callable from the frontend. - Invoke Rust functions from the frontend using
@tauri-apps/api/core(invoke). - Utilize Tauri's event system (
emitfrom Rust,listenon frontend) for real-time or async updates. - Keep heavy processing and filesystem access in Rust (backend), while the frontend focuses purely on UI.