{"id":58229,"library":"ringbuf","title":"Ringbuf","description":"Lock-free SPSC FIFO ring buffer with direct access to inner data for high-performance concurrency.","status":"active","version":"0.4.8","language":"rust","source_language":null,"source_url":"https://github.com/agerasev/ringbuf","tags":["ring-buffer","lock-free","fifo","concurrency","spsc"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nringbuf = \"0.4.8\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add ringbuf","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"RingBuffer","correct":"use ringbuf::RingBuffer;"}],"quickstart":{"code":"use ringbuf::RingBuffer;\n\nfn main() {\n    let rb = RingBuffer::<i32>::new(4);\n    let (mut prod, mut cons) = rb.split();\n    prod.push(1).unwrap();\n    prod.push(2).unwrap();\n    if let Some(val) = cons.pop() {\n        println!(\"Popped: {}\", val);\n    }\n}","lang":"rust","description":"Creates a ring buffer, pushes two items, and pops one."},"warnings":[{"fix":"Use a multi-producer queue like crossbeam if needed.","message":"Single producer, single consumer only; not thread-safe for multiple producers.","severity":"gotcha","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'access':11 'buffer':8,22 'concurr':19,27 'data':14 'direct':10 'fifo':6,26 'free':4,25 'high':17 'high-perform':16 'inner':13 'lock':3,24 'lock-fre':2,23 'perform':18 'ring':7,21 'ring-buff':20 'ringbuf':1 'spsc':5,28","created_at":"2026-06-16T16:15:58.720836+00:00","updated_at":"2026-06-16T16:15:58.720836+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/agerasev/ringbuf","github":"https://github.com/agerasev/ringbuf","docs":"https://docs.rs/ringbuf/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","async"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}