This skill is organized to match the Tauri official documentation structure (https://v2.tauri.org.cn/, https://v2.tauri.org.cn/start/, https://v2.tauri.org.cn/reference/cli/). When working with Tauri:
- Identify the topic from the user's request:
- Installation/ๅฎ่ฃ
โ examples/start/installation.md
- Quick Start/ๅฟซ้ๅผๅง โ examples/start/quick-start.md
- Guide/ไฝฟ็จๆๅ โ examples/guide/
- CLI/ๅฝไปค่ก โ examples/reference/cli.md
- API/API ๆๆกฃ โ api/
- Load the appropriate example file from the
examples/ directory:
Start (ๅฟซ้ๅผๅง):
- examples/start/intro.md - Introduction to Tauri
- examples/start/installation.md - Installation guide
- examples/start/quick-start.md - Quick start guide
- examples/start/prerequisites.md - Prerequisites
Guide (ไฝฟ็จๆๅ):
- examples/guide/architecture.md - Architecture
- examples/guide/frontend.md - Frontend setup
- examples/guide/backend.md - Backend (Rust)
- examples/guide/commands.md - Commands
- examples/guide/events.md - Events
- examples/guide/window.md - Window management
- examples/guide/filesystem.md - File system
- examples/guide/configuration.md - Configuration
- examples/guide/build.md - Build and package
Reference (ๅ่):
- examples/reference/cli.md - CLI commands
- examples/reference/config.md - Configuration reference
- Follow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
- Tauri uses Web frontend and Rust backend
- Frontend can be any web framework
- Backend is written in Rust
- Communication via commands and events
- Each example file includes key concepts, code examples, and key points
- Reference API documentation in the
api/ directory when needed:
- api/tauri-api.md - Tauri API
- api/commands-api.md - Commands API
- api/events-api.md - Events API
- api/window-api.md - Window API
- api/filesystem-api.md - File system API
- api/config-api.md - Configuration API
- Use templates from the
templates/ directory:
- templates/installation.md - Installation templates
- templates/project-setup.md - Project setup templates
- templates/configuration.md - Configuration templates
1. Understanding Tauri
Tauri is a framework for building desktop applications using web frontend technologies and Rust backend.
Key Concepts:
- Frontend: Web technologies (HTML, CSS, JavaScript)
- Backend: Rust
- Commands: Frontend-backend communication
- Events: Event system
- Window: Window management
- File System: File operations
2. Installation
Prerequisites:
- Node.js
- Rust
- System dependencies
Using npm:
```bash
npm install @tauri-apps/cli
```
Using cargo:
```bash
cargo install tauri-cli
```
3. Basic Setup
```bash
# Create Tauri project
npm create tauri-app
# Or using cargo
cargo tauri init
```
Doc mapping (one-to-one with official documentation)
examples/guide/ or examples/getting-started/ โ https://v2.tauri.org.cn/start/api/ โ https://v2.tauri.org.cn/reference/cli/