Crates.io | gix-tempfile |
lib.rs | gix-tempfile |
version | 14.0.0 |
source | src |
created_at | 2023-02-17 09:42:44.425673 |
updated_at | 2024-05-22 11:48:49.01568 |
description | A tempfile implementation with a global registry to assure cleanup |
homepage | |
repository | https://github.com/Byron/gitoxide |
max_upload_size | |
id | 787423 |
size | 62,154 |
Use tempfiles to minimize the risk of resource leakage when preparing to overwrite or create a file with new content in a signal-safe way, making the change atomic.
Tempfiles can also be used as locks as only one tempfile can exist at a given path at a time.
gix
to clean lockfiles before the process is aborted.std::io
traits