6 releases (breaking)

Uses new Rust 2024

0.5.0 Dec 21, 2025
0.4.0 Dec 14, 2025
0.3.0 Dec 13, 2025
0.2.0 Dec 11, 2025
0.1.1 Dec 11, 2025

#676 in WebSocket


Used in 7 crates

MIT/Apache

400KB
8K SLoC

rapace

crates.io documentation MIT/Apache-2.0 licensed

High-performance RPC framework with support for multiple transports (shared memory, TCP, WebSocket) and streaming.

Features

  • Multiple transports: In-process (mem), TCP/Unix socket (stream), WebSocket, and shared memory (SHM)
  • Streaming: Full support for server and client streaming RPC calls
  • Code generation: Automatic client and server code generation from trait definitions
  • Zero-copy: Shared memory transport for ultra-low latency
  • Cross-platform: Works on Linux, macOS, Windows, and WebAssembly

Quick Start

use rapace::service;

#[rapace::service]
pub trait Calculator {
    async fn add(&self, a: i32, b: i32) -> i32;
    async fn multiply(&self, a: i32, b: i32) -> i32;
}

See the examples for more.

License

Licensed under either of:

at your option.

Dependencies

~27–49MB
~667K SLoC