Decision Workspace
file-guard vs fslock vs lockfile
Side-by-side comparison of Rust crates
50
file-guard
growingv0.2.0
A cross-platform library for simple advisory file locking.
53
fslock
growingv0.2.1
A library to use files as locks
46
lockfile
growingv0.4.0
Create lockfiles that remove themselves when they are dropped
Core Metrics
| file-guard | fslock | lockfile | |
|---|---|---|---|
| Health Score | 50 | 53 | 46 |
| Total Downloads | 8.6M | 31.2M | 389.1K |
| 30d Downloads | 687.7K | 2.3M | 6.6K |
| Dependents | 575 | 2.2K | 39 |
| Releases | 2 | 11 | 6 |
| Last Updated | 748d ago | 1558d ago | 1292d ago |
| Age | 4y 3m | 6y 2m | 7y 10m |
Health Breakdown
file-guard
Maintenance
3
Quality
15
Community
11
Popularity
8
Documentation
13
fslock
Maintenance
4
Quality
17
Community
15
Popularity
8
Documentation
9
lockfile
Maintenance
4
Quality
15
Community
10
Popularity
7
Documentation
10
Technical Details
| file-guard | fslock | lockfile | |
|---|---|---|---|
| Version | 0.2.0 | 0.2.1 | 0.4.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | MIT/Apache-2.0/ISC |
| Dependencies | 3 | 2 | 2 |
| Crate Size | 10KB | 13KB | 4KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •fslock leads with a health score of 53/100, but none of the options score above 80.
- •fslock is depended on by 2.2K crates — strongest ecosystem trust.
- •⚠ file-guard, fslock, lockfile have not been updated in over a year.