Crates.io | tempfile-fast |
lib.rs | tempfile-fast |
version | 0.3.4 |
source | src |
created_at | 2017-08-01 16:48:21.934201 |
updated_at | 2021-08-29 11:44:53.430283 |
description | Support for Linux-specific tempfile extensions |
homepage | |
repository | https://github.com/FauxFaux/tempfile-fast-rs |
max_upload_size | |
id | 25993 |
size | 26,283 |
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.
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. as of 2017, the latest version, and even the previous version, of everything except CentOS/RHEL looks pretty promising.
An alternative implementation, ramming this into NamedTemporaryFile
,
was discussed in a pull-request.
This was the result.