Registry / utility / fslock

fslock

JSON →
library0.2.1rscratesunverified

A library to use files as locks for cross-process synchronization.

# Cargo.toml [dependencies] fslock = "0.2.1"
INSTALL
IMPORT
SIG · FSLOCK
F
fslock
utilityrustv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LockFile
use fslock::LockFile;

Create and acquire a file lock.

use fslock::LockFile; fn main() -> std::io::Result<()> { let mut lock = LockFile::open("myfile.lock")?; lock.lock()?; // critical section lock.unlock()?; Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fslock — cargo add fslock · libregistry