hdf5 0.8.1

Thread-safe Rust bindings for the HDF5 library.
1
2
3
4
5
6
7
8
9
10
use super::gen::gen_ascii;

pub fn random_filename() -> String {
    gen_ascii(&mut rand::thread_rng(), 8)
}

pub fn new_in_memory_file() -> hdf5::Result<hdf5::File> {
    let filename = random_filename();
    hdf5::File::with_options().with_fapl(|p| p.core_filebacked(false)).create(&filename)
}