mktemp/
lib.rs

1#![warn(missing_docs)]
2
3//! # mktemp
4//!
5//! `mktemp` is a thin wrapper around `libc`'s `mkstemps` and `mkdtemp`.
6
7macro_rules! debug {
8    ($($arg:tt)*) => {
9        if cfg!(debug_assertions) {
10            eprintln!("{f}:{l}:{c} {fmt}", f=file!(), l=line!(), c=column!(), fmt=format!($($arg)*));
11        }
12    }
13}
14
15mod temp_file;
16pub use self::temp_file::TempFile;
17
18mod temp_dir;
19pub use self::temp_dir::TempDir;