| Crates.io | fslock-guard |
| lib.rs | fslock-guard |
| version | 0.5.1 |
| created_at | 2024-02-05 18:40:35.438691+00 |
| updated_at | 2025-12-02 12:50:17.859119+00 |
| description | Wrapper around a lockfile with unlock-on-drop semantics |
| homepage | https://gitlab.torproject.org/tpo/core/arti/-/wikis/home |
| repository | https://gitlab.torproject.org/tpo/core/arti.git/ |
| max_upload_size | |
| id | 1127843 |
| size | 25,624 |
fslock-guard — A guard object to ensure we have an exclusive lock to a fileThis crate is a thin wrapper around fslock, which uses flock(2) or
LockFileEx to acquire an advisory lock on the filesystem.
We add two features that fslock does not (currently) have:
LockFileGuard] type, which can be used to ensure that a lock is
actually held until the guard is dropped.