dartlib 0.3.0

Disk backed concurrent Adaptive Radix Tree implementation, with optional generations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[allow(unused_macros)]
macro_rules! in_temp_dir {
    ($block:expr) => {{
        let tmpdir = tempfile::tempdir().unwrap();
        let tmpdir_path = tmpdir.path();
        let disk_path = tmpdir_path.display().to_string() + "/disk";

        std::fs::create_dir(disk_path).expect("Expected Disk path to create in TempDir.");
        std::env::set_current_dir(&tmpdir).unwrap();

        $block(tmpdir.path().display().to_string());
    }};
}

#[allow(dead_code)]
#[allow(unused_imports)]
pub(crate) use in_temp_dir;