Expand description
soma-tauri-shell — reusable, product-neutral Tauri desktop shell mechanics.
This crate owns generic Tauri window/tray/shortcut/blur/persistence and
command-result plumbing shared across Tauri-based desktop apps built on
Soma. It deliberately owns mechanics, not policy: it has no knowledge of
any particular product’s settings shape, environment variable names,
OAuth policy, or UI. Callers (an app-local src-tauri package) supply the
product-specific labels, defaults, and business logic and call into these
helpers to do the actual Tauri API work.
See soma-architecture-refactor-plan-v3.md section 3.14 for the crate’s
ownership boundary.
Re-exports§
pub use command::CommandResult;pub use command::TauriResultExt;
Modules§
- app
AppHandle-level helpers: resolving a window by label, toggling its visibility, and emitting a frontend event without letting the failure propagate as a command error.- blur
- Blur-dismiss state and generic window-lifecycle event helpers.
- command
- Generic result/error helpers for Tauri command handlers.
- persistence
- Generic app-data path resolution and atomic JSON persistence helpers.
- shortcut
- Global shortcut parsing, registration, rebind, and active-shortcut tracking.
- tray
- Tray icon setup helpers.
- window
- Window show/hide/focus/resize/center/shadow mechanics.