{"id":57124,"library":"parking-lot","title":"Parking Lot","description":"More compact and efficient implementations of the standard synchronization primitives.","status":"active","version":"0.12.5","language":"rust","source_language":null,"source_url":"https://github.com/Amanieu/parking_lot","tags":["synchronization","mutex","concurrency"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nparking_lot = \"0.12.5\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add parking_lot","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Mutex","correct":"use parking_lot::Mutex;"}],"quickstart":{"code":"use parking_lot::Mutex;\nuse std::sync::Arc;\n\nfn main() {\n    let data = Arc::new(Mutex::new(0));\n    let mut guard = data.lock();\n    *guard += 1;\n    println!(\"{}\", *guard);\n}","lang":"rust","description":"Creates a mutex-protected integer and increments it."},"warnings":[{"fix":"Use `parking_lot::Mutex` directly; avoid mixing with std mutexes.","message":"parking_lot::Mutex is not compatible with std::sync::Mutex in generic contexts; it uses a different API.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'compact':4 'concurr':15 'effici':6 'implement':7 'lot':2 'mutex':14 'park':1 'primit':12 'standard':10 'synchron':11,13","created_at":"2026-06-16T15:29:11.409857+00:00","updated_at":"2026-06-16T15:29:11.409857+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/Amanieu/parking_lot","github":"https://github.com/Amanieu/parking_lot","docs":"https://docs.rs/parking_lot/","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-16","next_check":"2026-12-13","install_tag":null}}