1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*!
Simple persistent generic HashMap/Key-value store, using the Persy Index API.

This is in a beta state at the moment.

 usage:

```
use persawkv::prelude::*;
let test_store = persawkv::SingleKV::<String, String>::new("./raw.cab", "runint").unwrap();

let _ = test_store.insert("key".to_string(), "value".to_string());
println!("{:?}", test_store.get(&"key".to_string()));
let _ = test_store.remove("key".to_string());

# let _ = std::fs::remove_file("./raw.cab");
```
*/

#![deny(missing_docs)]
#![forbid(unsafe_code)]

mod base;
mod multi;
mod single;

pub use crate::{base::*, multi::*, single::*};
pub use persy::PRes;

/// This module contains the standard traits for this crate
pub mod prelude {
    pub use crate::base::KV as _;
}