Skip to main content

Crate unifier

Crate unifier 

Source
Expand description

Filesystem postbox: inter-process communication via a Unix tree.

State lives under [UnifierHome] (default ~/.local/unifier). Programs write values to files treated as keys; mailboxes and cron slots collect UUID-named message files for pickup by other processes.

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

chroot
Chroot administration: isolated subtrees under chroots/<name>/.
cli
CLI dispatch.
constants
On-disk layout constants.
cron
Cron schedule matching for directory names like 0_0_*_*_*.
daemon
Hot in-memory daemon lifecycle and client dispatch.
envelope
Mailbox envelope: sender, recipient, unique id, and data packet.
error
fs_text
Small filesystem helpers for text files and atomic writes.
home
Resolve the unifier state root (~/.local/unifier by default) and optional chroots.
paths
Path construction for entities in the store.
postbox
Postbox operations: keys, mailbox messages, and cron drops.
scope
Path validation: chroot names and subtree confinement.
store
In-memory hot store with dirty tracking; flush writes only changed data to disk.
tick
ACID tick staging: read previous tick at start, write current tick in memory, commit at end.

Functions§

run
Run the CLI and return a Result for the process exit code handler.