{"id":75940,"library":"dark-std","title":"Dark Std","description":"Implementation of asynchronous containers built on tokio using a read-write separation design borrowed from Golang","status":"active","version":"0.2.16","language":"rust","source_language":null,"source_url":"https://github.com/darkrpc/dark-std","tags":["async","tokio","containers","concurrency"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ndark-std = \"0.2.16\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add dark-std","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"RwLock","correct":"use dark_std::sync::RwLock;"}],"quickstart":{"code":"use dark_std::sync::RwLock;\n\n#[tokio::main]\nasync fn main() {\n    let lock = RwLock::new(42);\n    let val = *lock.read().await;\n    println!(\"{}\", val);\n}","lang":"rust","description":"Use an async RwLock with tokio runtime"},"warnings":[{"fix":"Use #[tokio::main] or manually create a tokio runtime","message":"Requires tokio runtime to be active","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'async':20 'asynchron':5 'borrow':17 'built':7 'concurr':23 'contain':6,22 'dark':1 'design':16 'golang':19 'implement':3 'read':13 'read-writ':12 'separ':15 'std':2 'tokio':9,21 'use':10 'write':14","created_at":"2026-06-17T19:22:52.830516+00:00","updated_at":"2026-06-17T19:22:52.830516+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/darkrpc/dark-std","github":"https://github.com/darkrpc/dark-std","docs":"https://docs.rs/dark-std/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}