Decision Workspace
fd-lock-rs vs fs4 vs filelock
Side-by-side comparison of Rust crates
39
fd-lock-rs
growingv0.1.4
Like [fd-lock](https://crates.io/crates/fd-lock) but with a slightly different API.
64
fs4
stablev1.1.0
No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix.
52
filelock
growingv0.7.0
Cross-platform file locking library for Rust
Core Metrics
| fd-lock-rs | fs4 | filelock | |
|---|---|---|---|
| Health Score | 39 | 64 | 52 |
| Total Downloads | 110.1K | 72.0M | 8.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 6.6K | 7 |
| Releases | 5 | 32 | 11 |
| Last Updated | 1541d ago | 165d ago | 69d ago |
| Age | 5y 10m | 4y 9m | 5y 1m |
Health Breakdown
fd-lock-rs
Maintenance
3
Quality
15
Community
3
Popularity
6
Documentation
12
fs4
Maintenance
12
Quality
14
Community
15
Popularity
8
Documentation
15
filelock
Maintenance
12
Quality
15
Community
8
Popularity
5
Documentation
12
Technical Details
| fd-lock-rs | fs4 | filelock | |
|---|---|---|---|
| Version | 0.1.4 | 1.1.0 | 0.7.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 1 | 13 | 4 |
| Crate Size | 2KB | 45KB | 19KB |
| Features | 0 | 9 | 1 |
| Yanked % | 0.0% | 12.5% | 0.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | 1.75.0 | 1.71 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •fs4 leads with a health score of 64/100, but none of the options score above 80.
- •fs4 is depended on by 6.6K crates — strongest ecosystem trust.
- •⚠ fd-lock-rs has not been updated in over a year.
- •fd-lock-rs, filelock are pre-1.0 — API may change.