mrpc/
lib.rs

1//! MessagePack-RPC implementation in Rust.
2//!
3//! Provides asynchronous RPC servers and clients over TCP and Unix domain sockets.
4//! Implements the full MessagePack-RPC specification.
5//!
6//! Both servers and clients can handle incoming RPC messages, enabling bidirectional
7//! communication.
8//!
9//! To implement a server:
10//! 1. Implement the `Connection` trait
11//! 2. Create a `Server` with the service
12//! 3. Call `server.tcp(addr)` or `server.unix(path)`
13//! 4. Call `server.run()`
14//!
15//! To implement a client:
16//! 1. Implement the `Connection` trait
17//! 2. Create a `Client` via `Client::connect_tcp(addr)` or `Client::connect_unix(path)`
18//! 3. Use `client.send_request()` or `client.send_notification()`
19
20mod connection;
21mod error;
22mod message;
23mod transport;
24
25pub use connection::*;
26pub use error::*;
27pub use message::*;
28pub use transport::*;
29
30pub use rmpv::Value;