Registry / async / bbqueue

bbqueue

JSON →
library0.7.0rscratesunverified

A single-producer, single-consumer, lockless, no_std, thread-safe queue based on BipBuffers.

asyncutility
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.

use bbqueue::BBQueue;

Create a BBQueue, split into producer and consumer, write and read data.

use bbqueue::BBQueue; fn main() { let bb: BBQueue<100> = BBQueue::new(); let (mut prod, mut cons) = bb.split(); prod.grant(5).unwrap().copy_from_slice(b"hello"); prod.commit(5); let r = cons.read().unwrap(); assert_eq!(&*r, b"hello"); r.release(); }
Debug
Known footguns
gotchaBBQueue requires careful handling of grant/commit/release; forgetting to commit or release can cause deadlocks or data loss.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
19 hits · last 30 days
gptbot
3
amazonbot
3
bytedance
3
claudebot
3
mj12bot
1
ahrefsbot
1
Resources