Decision Workspace
file-locker vs fslock-guard vs fd-lock
Side-by-side comparison of Rust crates
54
file-locker
growingv1.1.4
File locking via POSIX advisory record locks
67
fslock-guard
growingv0.6.0
Wrapper around a lockfile with unlock-on-drop semantics
65
fd-lock
growingv4.0.4
Advisory cross-platform lock on a file using a file descriptor to it.
Core Metrics
| file-locker | fslock-guard | fd-lock | |
|---|---|---|---|
| Health Score | 54 | 67 | 65 |
| Total Downloads | 84.7K | 85.1K | 39.1M |
| 30d Downloads | 5.4K | 4.7K | 3.3M |
| Dependents | 8 | 41 | 1.2K |
| Releases | 9 | 17 | 23 |
| Last Updated | 161d ago | 24d ago | 382d ago |
| Age | 5y 8m | 2y 1m | 6y 9m |
Health Breakdown
file-locker
Maintenance
10
Quality
20
Community
9
Popularity
6
Documentation
9
fslock-guard
Maintenance
20
Quality
16
Community
13
Popularity
6
Documentation
12
fd-lock
Maintenance
7
Quality
19
Community
18
Popularity
8
Documentation
13
Technical Details
| file-locker | fslock-guard | fd-lock | |
|---|---|---|---|
| Version | 1.1.4 | 0.6.0 | 4.0.4 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 4 | 4 |
| Crate Size | 6KB | 10KB | 16KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2021 |
| MSRV | — | 1.89 | — |
| Owners | 1 | 4 | 3 |
Links
Quick Verdict
- •fslock-guard leads with a health score of 67/100, but none of the options score above 80.
- •fd-lock has the most downloads (39.1M), suggesting wider adoption.
- •fd-lock is depended on by 1.2K crates — strongest ecosystem trust.
- •⚠ fd-lock has not been updated in over a year.
- •fslock-guard is pre-1.0 — API may change.