#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

#599 in Filesystem

Download history 21/week @ 2024-12-27 187/week @ 2025-02-14 76/week @ 2025-02-21 11/week @ 2025-02-28 42/week @ 2025-03-07 41/week @ 2025-03-14 28/week @ 2025-03-21 19/week @ 2025-03-28 4/week @ 2025-04-04 2/week @ 2025-04-11

53 downloads per month
Used in vmexec

MIT license

11KB
166 lines

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.

crates.io badge docs.rs badge

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

Dependencies

~3–32MB
~468K SLoC