08 - Native Capabilities

Tauri plugins expose system-level features with explicit permissions.

Common capabilities

CapabilityTypical use
FilesystemRead/write project files
DialogOpen/save folder/file pickers
NotificationBackground alerts
Shell/processRun trusted local tools
ClipboardCopy/paste workflows

Example workflow

  1. User chooses export path via dialog
  2. Frontend calls Rust export command
  3. Rust writes file and emits completion event
  4. Frontend shows notification

Safety rules

  • Keep allowlists tight
  • Validate all paths and command arguments
  • Never expose unrestricted shell execution to untrusted input