{"id":59118,"library":"bus","title":"Bus","description":"A lock-free, bounded, single-producer, multi-consumer, broadcast channel.","status":"active","version":"2.4.1","language":"rust","source_language":null,"source_url":"https://github.com/jonhoo/bus","tags":["channel","broadcast","lock-free","concurrency"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nbus = \"2.4.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add bus","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Bus","correct":"use bus::Bus;"}],"quickstart":{"code":"use bus::Bus;\n\nfn main() {\n    let mut bus = Bus::new(10);\n    let mut rx = bus.add_rx();\n    bus.broadcast(42);\n    assert_eq!(rx.recv(), Some(42));\n}","lang":"rust","description":"Creates a broadcast channel, sends a value, and receives it on a subscriber."},"warnings":[{"fix":"Use a Mutex around the Bus if multiple threads need to broadcast.","message":"Single-producer only; multiple producers require external synchronization.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'bound':6 'broadcast':13,16 'bus':1 'channel':14,15 'concurr':20 'consum':12 'free':5,19 'lock':4,18 'lock-fre':3,17 'multi':11 'multi-consum':10 'produc':9 'singl':8 'single-produc':7","created_at":"2026-06-16T16:50:47.720130+00:00","updated_at":"2026-06-16T16:50:47.720130+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/jonhoo/bus","github":"https://github.com/jonhoo/bus","docs":"https://docs.rs/bus/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["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}}