Fremkit
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.
Features
- Bounded log structure with fixed size.
- Fast and efficient, with performances comparable to a
Mutex<Vec<_>>. (See benchmarks) - Lock-free, and thread-safe design.
Usage
Add this to your Cargo.toml:
[]
= "^0.1"
Example
use Log;
let log: = new;
log.push.unwrap;
log.push.unwrap;
assert_eq!;
assert_eq!;
License
This crate is under the Apache-2.0 License.