#run-time #mutex

dir-lock

A simple file-system-based mutex

5 unstable releases

0.3.0 Jan 18, 2021
0.2.1 Feb 16, 2020
0.2.0 Feb 16, 2020
0.1.1 Feb 16, 2020
0.1.0 Feb 16, 2020

#1048 in Filesystem

MIT license

13KB
207 lines

crates.io 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:

Dependencies

~6–16MB
~226K SLoC