Registry / utility / cluflock

cluflock

JSON →
library1.2.7rscratesunverified

Installation and subsequent safe removal of `flock` locks for data streams.

# Cargo.toml [dependencies] cluFlock = "1.2.7"
INSTALL
IMPORT
SIG · CLUFLOCK
C
cluflock
utilityrustv1.2.7
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.

Flock
use cluFlock::Flock;

Creates and manages a flock lock on a file.

use cluFlock::Flock; fn main() -> Result<(), Box<dyn std::error::Error>> { let flock = Flock::lock("/tmp/my.lock")?; // ... do work ... flock.unlock()?; Ok(()) }
Debug
Known issues
gotchaOnly works on Unix-like systems
fix
Use conditional compilation or alternative locking on Windows.
affects: >=1.0.0
Upgrade
Version history
1.2.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
cluflock — cargo add cluflock · libregistry