system-interface 0.5.6

Extensions to the Rust standard library
Documentation
1
2
3
4
5
6
7
8
9
10
use cap_tempfile::tempdir;

pub use cap_tempfile::TempDir;

#[allow(unused)]
pub fn tmpdir() -> TempDir {
    // It's ok to wrap this in an unsafe block, rather than an unsafe function,
    // because this function is only used by tests.
    unsafe { tempdir() }.expect("expected to be able to create a temporary directory")
}