Registry / utility / dashmap

dashmap

JSON →
library6.2.1rscratesunverified

Blazing fast concurrent HashMap for Rust.

# Cargo.toml [dependencies] dashmap = "6.2.1"
INSTALL
IMPORT
SIG · DASHMAP
D
dashmap
utilityrustv6.2.1
harness data pending
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.

DashMap
use dashmap::DashMap;

Insert and retrieve a value from a concurrent hash map.

use dashmap::DashMap; fn main() { let map = DashMap::new(); map.insert("key", 42); if let Some(val) = map.get("key") { println!("Value: {}", *val); } }
Debug
Known issues
gotchaDashMap uses internal sharding; iterating while modifying can cause deadlocks.
fix
Use `iter_mut` with caution or collect into a Vec first.
affects: >=5.0.0
Upgrade
Version history
6.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
dashmap — cargo add dashmap · libregistry