Crate lowlet

Crate lowlet 

Source
Expand description

Low-latency inter-process communication library.

This crate provides high-performance primitives for IPC using shared memory and lock-free data structures. Designed for latency-critical applications such as trading systems and real-time processing.

§Modules

  • shm - Shared memory region management
  • sync - Synchronization primitives (spinlocks, barriers, fences)
  • lf - Lock-free data structures (queues, stacks)
  • buf - Ring buffer implementations
  • chan - Channel abstraction for message passing

§Example

use lowlet::channel;

let (tx, rx) = channel::<u64, 1024>();
tx.send(42).unwrap();
let value = rx.recv().unwrap();

§Safety

This crate uses inline assembly for x86_64 atomics and direct system calls for shared memory. All unsafe code is carefully reviewed for correctness.

Re-exports§

pub use chan::channel;
pub use chan::Receiver;
pub use chan::Sender;
pub use err::Error;
pub use err::Result;
pub use shm::Region;

Modules§

buf
Buffer implementations.
chan
Channel abstraction for message passing.
err
Error types for the lowlet crate.
lf
Lock-free data structures.
metrics
shm
Shared memory management.
sync
Synchronization primitives for low-latency applications.