gestura_core_ipc/lib.rs
1//! Hotkey-oriented inter-process communication primitives for Gestura.
2//!
3//! `gestura-core-ipc` provides the lightweight IPC layer used to signal hotkey
4//! activity between processes, especially between CLI sessions and helper
5//! processes that need to discover or trigger them.
6//!
7//! ## Main entry points
8//!
9//! - `CliHotkeyEndpoint`: discovery payload describing the running CLI endpoint
10//! - `default_cli_hotkey_port_file`: canonical discovery-file location
11//! - `start_cli_hotkey_server`: start the CLI hotkey server and publish discovery info
12//! - `try_send_hotkey_trigger_to_cli`: best-effort trigger delivery to a running CLI session
13//! - `CliHotkeyServerGuard`: lifecycle guard for cleanup and task shutdown
14//!
15//! ## Architecture role
16//!
17//! This crate owns the IPC protocol primitives themselves. It does not decide
18//! what a hotkey means in the broader application; higher-level hotkey behavior
19//! stays in CLI/GUI orchestration code.
20//!
21//! ## Stable import paths
22//!
23//! Most code should import through `gestura_core::hotkey_ipc::*`.
24
25mod hotkey_ipc;
26
27pub use hotkey_ipc::*;