tauri-syntax-commands

Installation
SKILL.md

tauri-syntax-commands

Quick Reference

Command Definition (Rust)

Pattern Syntax Notes
Sync command #[tauri::command] fn name() -> T Runs on main thread
Async command #[tauri::command] async fn name() -> T Spawned on tokio runtime
Forced async #[tauri::command(async)] fn name() -> T Sync function on tokio runtime
Renamed args #[tauri::command(rename_all = "snake_case")] JS passes snake_case keys

Argument Types (Rust <- JS)

Rust Type JS Type Notes
i32, u64, f64 number Direct mapping
bool boolean Direct mapping
Related skills
Installs
1
GitHub Stars
1
First Seen
Apr 2, 2026