Decision Workspace
async-file-lock vs async-fd-lock vs fs4
Side-by-side comparison of Rust crates
36
async-file-lock
growingv0.1.4
Asynchronous file lock that can auto lock and auto seek.
45
async-fd-lock
growingv0.2.0
Advisory cross-platform file locks using file descriptors with async support by spawning blocking tasks.
69
fs4
stablev1.1.0
No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix.
Core Metrics
| async-file-lock | async-fd-lock | fs4 | |
|---|---|---|---|
| Health Score | 36 | 45 | 69 |
| Total Downloads | 11.6K | 256.2K | 44.0M |
| 30d Downloads | 0 | 35.6K | 4.4M |
| Dependents | 0 | 106 | 2.4K |
| Releases | 5 | 3 | 32 |
| Last Updated | 1779d ago | 701d ago | 28d ago |
| Age | 5y 3m | 1y 11m | 4y 4m |
Health Breakdown
async-file-lock
Maintenance
3
Quality
14
Community
5
Popularity
5
Documentation
9
async-fd-lock
Maintenance
5
Quality
9
Community
12
Popularity
6
Documentation
13
fs4
Maintenance
17
Quality
14
Community
15
Popularity
8
Documentation
15
Technical Details
| async-file-lock | async-fd-lock | fs4 | |
|---|---|---|---|
| Version | 0.1.4 | 0.2.0 | 1.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 6 | 12 | 13 |
| Crate Size | 6KB | 13KB | 45KB |
| Features | 0 | 2 | 9 |
| Yanked % | 0.0% | 33.3% | 12.5% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | — | 1.75.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •fs4 leads with a health score of 69/100, but none of the options score above 80.
- •fs4 is depended on by 2.4K crates — strongest ecosystem trust.
- •⚠ async-file-lock, async-fd-lock have not been updated in over a year.
- •async-file-lock, async-fd-lock are pre-1.0 — API may change.