Crates.io | fremkit |
lib.rs | fremkit |
version | 0.1.1 |
source | src |
created_at | 2022-12-22 22:39:08.500057 |
updated_at | 2022-12-23 14:49:37.518429 |
description | A simple broadcast log |
homepage | https://github.com/fiahil/Fremkit |
repository | https://github.com/fiahil/Fremkit |
max_upload_size | |
id | 744145 |
size | 10,277,936 |
Fremkit is a simple broadcast log.
A Log's primary use case is to store an immutable sequence of messages, events, or other data, and to allow multiple readers to access the data concurrently.
Mutex<Vec<_>>
. (See benchmarks)Add this to your Cargo.toml
:
[dependencies]
fremkit = "^0.1"
use fremkit::bounded::Log;
let log: Log<u64> = Log::new(100);
log.push(1).unwrap();
log.push(2).unwrap();
assert_eq!(log.get(0), Some(&1));
assert_eq!(log.get(1), Some(&2));
This crate is under the Apache-2.0 License.