mktemp files and directories. Fork of mktemp.
Find a file
Aravinth Manivannan 062c3834b4
Some checks failed
Stable Linux / Check (push) Has been cancelled
Stable Linux / Test Suite (push) Has been cancelled
Stable Linux / Lints (push) Has been cancelled
feat: update readme to include forking motovation
2025-11-20 17:24:37 +05:30
.github Create dependabot.yml 2022-11-07 13:01:41 +00:00
src don't panic 2022-11-07 12:38:31 +00:00
.gitignore initial commit 2016-03-25 11:12:33 -07:00
Cargo.toml feat: bump version to 0.6.0 2025-11-20 17:22:01 +05:30
LICENSE Add LICENSE: While this package always had MPLv2 (as stated in the README) this adds a formal LICENSE to the repository 2019-03-17 14:57:50 +01:00
README.md feat: update readme to include forking motovation 2025-11-20 17:24:37 +05:30

NOTE: This is a fork of mktemp by samgiles. The uuid requirement was broken, since the original crate hasn't been updated in a bit.


mktemp

Released API docs MPL licensed CI

This module provides a simple way of creating temporary files and directories where their lifetime is defined by the scope they exist in.

Once the variable goes out of scope, the underlying file system resource is removed.

See documentation for full API, and other use cases.

Example

use mktemp::Temp;

{
  let temp_file = Temp::new_file().unwrap();
  let file = fs::File::open(temp_file).unwrap();
} // temp_file is cleaned from the fs here

Contributors

Special thanks to our contributors! Contributors

License

MPL v2