pmem-obj 0.0.1

Rust abstractions over `pmemobj-sys`. Transactional object store, providing memory allocation, transactions, and general facilities for persistent memory programming. Developers new to persistent memory probably want to start with this crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate pmem_obj;

use ::std::fs;
use ::std::path::Path;
use ::std::fs::File;

use ::pmem_obj::ObjPool;

//#[test] - ignore for now
fn create() {
    let path = Path::new("/tmp/test-create.pmemobj");
    if path.exists() {
        fs::remove_file(&path).unwrap();
    }
    File::create(&path).unwrap();
    let _p = ObjPool::create(path, "", 2*1024*1024).unwrap();
}