7 unstable releases

new 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

#425 in Filesystem

Download history 1/week @ 2024-10-31 2/week @ 2024-12-05 1/week @ 2024-12-12 21/week @ 2024-12-26

313 downloads per month

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–32MB
~466K SLoC