coralstack-cmd-ipc
Inter-Process Communication (IPC) library for running typed Commands
across processes and services. Rust port of
@coralstack/cmd-ipc,
conforming to the same wire protocol (see spec/ in the repo).
What it does
- Register commands as typed handlers and invoke them across channels (in-memory, stdio, HTTP, custom transports).
- Route unknown commands to a parent registry via an optional
router_channel, yielding a hybrid tree-mesh topology. - Fan out typed events to all connected peers with per-registry de-duplication.
- Strict-by-default API: the
Commandtrait pins request/response types at compile time. A looseexecute_dyn/on_dynpair exists for FFI and scripting hosts.
Quick start
use *;
;
async
Events
registry.emit?;
let _unsub = registry.;
Related crates
coralstack-cmd-ipc-macros— the#[command]/#[event]/#[payload]proc-macros (re-exported from this crate'sprelude).coralstack-cmd-ipc-mcp— adapter that exposes aCommandRegistryas an MCP server.
License
MIT. See the repository root for the full text.