#mutex #directory #dir-lock

dir-lock

A simple file-system-based mutex

7 unstable releases

0.4.1 Feb 19, 2025
0.4.0 Feb 19, 2025
0.3.0 Jan 18, 2021
0.2.1 Feb 16, 2020
0.1.1 Feb 16, 2020

#681 in Filesystem

Download history 2/week @ 2024-12-04 1/week @ 2024-12-11 21/week @ 2024-12-25 259/week @ 2025-02-19 12/week @ 2025-02-26 7/week @ 2025-03-05 66/week @ 2025-03-12 37/week @ 2025-03-19

128 downloads per month
Used in vmexec

MIT license

11KB
166 lines

crates.io badge docs.rs badge

This is dir-lock, a library crate providing a simple file-system-based mutex.


lib.rs:

This is dir-lock, a library crate providing the type DirLock, which is a simple file-system-based mutex.

Features

The following feature is enabled by default:

  • tokio: Uses the tokio runtime for async operations.

The following features can be enabled via Cargo:

  • async-std: Uses the async-std runtime for async operations. The tokio feature should be disabled when using this feature.

Dependencies

~3–31MB
~467K SLoC