natdb 0.1.1

Safe, idiomatic Rust bindings for LMDB 1.0 (maintained fork of lmdb-rkv).
Documentation
1
2
3
4
5
6
7
8
9
10
//! Helpers shared by the integration tests.

use tempfile::TempDir;

/// Creates a fresh, empty temporary directory to host an LMDB environment.
///
/// The directory and everything in it is deleted when the returned guard drops.
pub fn temp_dir() -> TempDir {
    tempfile::Builder::new().prefix("natdb-test").tempdir().expect("create temporary directory")
}