tauri
Installation
SKILL.md
Tauri
Tauri allows building desktop (and now mobile in v2.0) apps using web technologies. It differs from Electron by using the OS Native Webview (WebView2 on Windows, WebKit on macOS/Linux).
When to Use
- Lightweight Cross-Platform Desktop Apps: Building native macOS, Windows, and Linux apps using web frontends and Rust backends.
- Tauri v2 Mobile & Desktop Support: Compiling unified codebases to iOS, Android, and desktop.
- Memory-Efficient Desktop Software: Tiny binary size (< 10MB) and low memory usage utilizing the system webview.
- High-Security Desktop Environments: Strict IPC permissions, cryptographic signature verification, and zero Node runtime.
Quick Start
// src-tauri/src/main.rs
#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}! You've been greeted from Rust!", name)
}