unix-ipc
This crate implements a minimal abstraction over UNIX domain sockets for the purpose of IPC. It lets you send both file handles and rust objects between processes.
How it works
This uses serde to serialize data over unix sockets
via bincode. Thanks to the
Handle
abstraction you can also send any object
across that is convertable into a unix file handle.
Example
use env;
use process;
use ;
use ;
const ENV_VAR: &str = "PROC_CONNECT_TO";
if let Ok = var else
Feature Flags
All features are enabled by default but a lot can be turned off to cut down on dependencies. With all default features enabled only the raw types are available.
serde
: enables serialization and deserialization.bootstrap
: adds theBootstrapper
type.bootstrap-simple
: adds the defaultnew
constructor to the bootstrapper.
License: MIT/Apache-2.0