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.
58
fs4
growingv0.13.1
No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix.
52
filelock
growingv0.5.0
Cross-platform file locking library for Rust
Core Metrics
| fd-lock-rs | fs4 | filelock | |
|---|---|---|---|
| Health Score | 39 | 58 | 52 |
| Total Downloads | 40.4K | 36.1M | 7.3K |
| 30d Downloads | 2.7K | 3.4M | 75 |
| Dependents | 0 | 1.7K | 6 |
| Releases | 5 | 28 | 9 |
| Last Updated | 1345d ago | 384d ago | 40d ago |
| Age | 5y 3m | 4y 2m | 4y 6m |
Health Breakdown
fd-lock-rs
Maintenance
3
Quality
15
Community
3
Popularity
6
Documentation
12
fs4
Maintenance
8
Quality
12
Community
15
Popularity
8
Documentation
15
filelock
Maintenance
14
Quality
15
Community
8
Popularity
5
Documentation
10
Technical Details
| fd-lock-rs | fs4 | filelock | |
|---|---|---|---|
| Version | 0.1.4 | 0.13.1 | 0.5.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 1 | 14 | 3 |
| Crate Size | 2KB | 29KB | 7KB |
| Features | 0 | 9 | 0 |
| Yanked % | 0.0% | 14.3% | 0.0% |
| Edition | 2018 | 2021 | 2024 |
| MSRV | — | 1.75.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •fs4 leads with a health score of 58/100, but none of the options score above 80.
- •fs4 is depended on by 1.7K crates — strongest ecosystem trust.
- •⚠ fd-lock-rs, fs4 have not been updated in over a year.