#shared-memory #ipc #ring-buffer #lock-free

shm-primitives

Lock-free primitives for shared memory IPC: BipBuffer, slot metadata, and OS-level doorbell/mmap

15 releases (4 stable)

Uses new Rust 2024

7.3.0 Mar 6, 2026
7.2.0 Mar 6, 2026
0.6.0 Jan 22, 2026
0.5.0 Dec 21, 2025
0.2.2 Mar 28, 2026

#347 in Memory management

50 downloads per month
Used in 6 crates (5 directly)

MIT/Apache

155KB
3K SLoC

shm-primitives

Lock-free shared-memory data structures and peer coordination primitives.

Role in the Roam stack

shm-primitives is foundational infrastructure below the Link layer for SHM transports.

What this crate provides

  • Ring/buffer and slot-management primitives for shared-memory IPC
  • Segment and peer-state building blocks used by higher-level SHM transport code

Fits with

  • roam-shm transport implementation
  • roam-shm-ffi for foreign-runtime interoperability
  • shm-primitives-async for async OS control paths

Part of the Roam workspace: https://github.com/bearcove/roam

Dependencies

~0–4.5MB
~70K SLoC