erpc_rust 0.1.1

Rust implementation of eRPC (Embedded RPC) protocol
Documentation

eRPC Rust Implementation

A pure Rust implementation of the eRPC (Embedded RPC) protocol, providing client and server functionality with multiple transport options.

Features

  • Transport Layer: TCP, Serial, and in-memory transports
  • Codec: Binary protocol with little-endian encoding
  • Client/Server: Async client manager and server implementations
  • Message Types: Support for invocation, oneway, reply, and notification messages

Example

use erpc_rust::{
    client::ClientManager,
    codec::BasicCodecFactory,
    transport::memory::MemoryTransport,
};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Create paired memory transports for testing
    let (client_transport, _server_transport) = MemoryTransport::pair();
    let codec_factory = BasicCodecFactory::new();
    let _client = ClientManager::new(client_transport, codec_factory);
    
    // Use client for RPC calls
    Ok(())
}