| Crates.io | hypercounter |
| lib.rs | hypercounter |
| version | 0.4.3 |
| created_at | 2025-11-11 05:09:08.835878+00 |
| updated_at | 2025-11-27 03:27:02.737272+00 |
| description | An atomic, lock-free, hash map-like counter structure. |
| homepage | |
| repository | https://github.com/Nekidev/hypercounter |
| max_upload_size | |
| id | 1926715 |
| size | 38,508 |
An atomic, lock-free, hash map-like counter structure.
use std::sync::atomic::{AtomicUsize, Ordering};
use hypercounter::HyperCounter;
let counter: HyperCounter<String, AtomicUsize> = HyperCounter::new();
counter.fetch_add("example_key".to_string(), 1, Ordering::Relaxed);
counter.fetch_sub("example_key".to_string(), 1, Ordering::Relaxed);
To read the full documentation, visit docs.rs/hypercounter.