Registry / async / rtrb
library0.3.4rscratesunverified

A realtime-safe single-producer single-consumer ring buffer for audio and other low-latency applications.

# Cargo.toml [dependencies] rtrb = "0.3.4"
INSTALL
IMPORT
SIG · RTRB
R
rtrb
asyncrustv0.3.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RingBuffer
use rtrb::RingBuffer;

Creates a ring buffer, pushes a value, and pops it.

use rtrb::RingBuffer; fn main() { let (mut producer, mut consumer) = RingBuffer::new(1024); producer.push(42).unwrap(); if let Some(val) = consumer.pop() { println!("Received: {}", val); } }
Debug
Known issues
gotchaSingle-producer single-consumer only; not thread-safe for multiple producers.
fix
Use a multi-producer ring buffer or synchronize access externally.
affects: >=0.3.0
Upgrade
Version history
0.3.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Resources
rtrb — cargo add rtrb · libregistry