Registry / utility / mktemp

mktemp

JSON →
library0.5.1rscratesunverified

A Rust library for creating temporary files and directories, similar to the Unix mktemp command.

# Cargo.toml [dependencies] mktemp = "0.5.1"
INSTALL
IMPORT
SIG · MKTEMP
M
mktemp
utilityrustv0.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TempFile
use mktemp::TempFile;

Creates a temporary file with a custom prefix and suffix.

use mktemp::TempFile; fn main() { let tmp = TempFile::new("prefix_", ".suffix").unwrap(); println!("Created temp file: {:?}", tmp.path()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mktemp — cargo add mktemp · libregistry