Decision Workspace
file-locker vs fslock-guard vs fd-lock
Side-by-side comparison of Rust crates
51
file-locker
growingv1.1.4
File locking via POSIX advisory record locks
70
fslock-guard
growingv0.9.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 | 51 | 70 | 65 |
| Total Downloads | 144.3K | 548.3K | 67.4M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 8 | 61 | 2.4K |
| Releases | 9 | 22 | 23 |
| Last Updated | 357d ago | 8d ago | 578d ago |
| Age | 6y 2m | 2y 8m | 7y 3m |
Health Breakdown
file-locker
Maintenance
7
Quality
20
Community
9
Popularity
6
Documentation
9
fslock-guard
Maintenance
21
Quality
16
Community
14
Popularity
7
Documentation
12
fd-lock
Maintenance
6
Quality
19
Community
19
Popularity
8
Documentation
13
Technical Details
| file-locker | fslock-guard | fd-lock | |
|---|---|---|---|
| Version | 1.1.4 | 0.9.0 | 4.0.4 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 5 | 4 |
| Crate Size | 6KB | 11KB | 16KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2021 |
| MSRV | — | 1.92 | — |
| Owners | 1 | 4 | 3 |
Links
Quick Verdict
- •fslock-guard leads with a health score of 70/100, but none of the options score above 80.
- •fd-lock has the most downloads (67.4M), suggesting wider adoption.
- •fd-lock is depended on by 2.4K crates — strongest ecosystem trust.
- •⚠ fd-lock has not been updated in over a year.
- •fslock-guard is pre-1.0 — API may change.