| Crates.io | tempfile-fast |
| lib.rs | tempfile-fast |
| version | 0.3.5 |
| created_at | 2017-08-01 16:48:21.934201+00 |
| updated_at | 2025-12-30 17:56:56.783819+00 |
| description | Support for Linux-specific tempfile extensions |
| homepage | |
| repository | https://github.com/FauxFaux/tempfile-fast-rs |
| max_upload_size | |
| id | 25993 |
| size | 32,497 |
On "recent" Linux (~2014+), filesystems support a new type of unnamed, persistable temporary file.
The excellent tempfile crate
supports two types of temporary files:
It does not, however, expose unnamed (secure, fast), persistable (convenient) files. This crate does.
The performance, or even the series of operations, may be identical for your use-case:
tempfile has changed significantly since this code was written.
On non-modern-Linux, this crate falls back to using tempfile's NamedTemporaryFile directly.
Support for O_TMPFILE was added to:
Some distros, with release dates, End of Life dates, and kernel versions:
i.e. since about 2024, everything in support, even for RHEL, will likely be new enough.
An alternative implementation, ramming this into NamedTemporaryFile,
was discussed in a pull-request.
This was the result.