tauri-v2
tauri v2
What it does
- Register every command in tauri::generatehandler![cmd1, cmd2, ...]
- Return Result<T, E> from commands for proper error handling
- Use Mutex<T> for shared state accessed from multiple commands
- Add capabilities before using any plugin features
- Use lib.rs for shared code (required for mobile builds)
- Use #[cfgattr(mobile, tauri::mobileentrypoint)] on pub fn run() in lib.rs for mobile compatibility
- Never use borrowed types (&str) in async commands - use owned types
Requirements & configuration
- | Token Usage | High (exploration) | Low (direct patterns) |
- Never skip capability setup - even "safe" operations need permissions
- Why: Async commands cannot borrow data across await points; Tauri requires owned types for async command parameters.
- Complex enums need #[serde(tag = "type")] or similar to be JSON-safe
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
tauri-v2 FAQ
What does the tauri-v2 skill do?
Tauri v2+ cross-platform app development with Rust backend. Use when configuring tauri.conf.json, implementing Rust commands (#[tauri::command]), setting up IPC patterns (invoke, emit, channels), configuring permissions/capabilities, troubleshooting build issues, or deploying desktop/mobile apps. Triggers on Tauri, src-tauri, invoke, emit, capabilities.json. Register every command in tauri::generatehandler![cmd1, cmd2, ...] Return Result<T, E> from commands for proper error handling
What does tauri-v2 require?
| Token Usage | High (exploration) | Low (direct patterns) | Never skip capability setup - even "safe" operations need permissions Why: Async commands cannot borrow data across await points; Tauri requires owned types for async command parameters. Complex enums need #[serde(tag = "type")] or similar to be JSON-safe
How do I install tauri-v2?
Run: npx -y skills add https://github.com/nodnarbnitram/claude-code-extensions --skill tauri-v2 --agent claude-code — the source lives at github.com/nodnarbnitram/claude-code-extensions.
Maintain tauri-v2?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/nodnarbnitram-claude-code-extensions-tauri-v2?ref=badge) npx agentictools info skills/nodnarbnitram-claude-code-extensions-tauri-v2 The second line is the CLI lookup for this page — handy in READMEs and docs.