5 releases (3 breaking)
Uses new Rust 2024
| 0.4.0 | Dec 14, 2025 |
|---|---|
| 0.3.0 | Dec 13, 2025 |
| 0.2.0 | Dec 11, 2025 |
| 0.1.1 | Dec 11, 2025 |
| 0.1.0 | Dec 11, 2025 |
#1183 in Memory management
585KB
12K
SLoC
rapace-transport-shm
Shared memory transport for rapace RPC.
This crate implements a transport on top of POSIX shared memory. It follows the layout described in the crate documentation (segment header, descriptor rings, and a data segment managed by a slab-style allocator).
Characteristics
- single-writer/single-reader rings in each direction;
- descriptors that point into a shared data segment;
- optional SHM-backed allocation for callers that want to avoid extra copies;
- Linux/Unix only (requires a POSIX-style shared memory API).
See the crate docs for details about the layout and configuration options.
Configuration
Enable the allocator feature for zero-copy SHM allocation:
rapace = { version = "0.1", features = ["shm"] }
rapace-transport-shm = { version = "0.1", features = ["allocator"] }
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~10–22MB
~210K SLoC