Decision Workspace
fd-lock-rs vs fs4 vs fs2
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.
67
fs4
stablev1.1.0
No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix.
51
fs2
growingv0.4.3
Cross-platform file locks and file duplication.
Core Metrics
| fd-lock-rs | fs4 | fs2 | |
|---|---|---|---|
| Health Score | 39 | 67 | 51 |
| Total Downloads | 75.3K | 52.9M | 70.0M |
| 30d Downloads | 11.3K | 3.7M | 2.8M |
| Dependents | 0 | 3.5K | 12.8K |
| Releases | 5 | 32 | 12 |
| Last Updated | 1453d ago | 76d ago | 3110d ago |
| Age | 5y 7m | 4y 6m | 10y 10m |
Health Breakdown
fd-lock-rs
Maintenance
3
Quality
15
Community
3
Popularity
6
Documentation
12
fs4
Maintenance
15
Quality
14
Community
15
Popularity
8
Documentation
15
fs2
Maintenance
5
Quality
15
Community
12
Popularity
8
Documentation
11
Technical Details
| fd-lock-rs | fs4 | fs2 | |
|---|---|---|---|
| Version | 0.1.4 | 1.1.0 | 0.4.3 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT/Apache-2.0 |
| Dependencies | 1 | 13 | 3 |
| Crate Size | 2KB | 45KB | 13KB |
| Features | 0 | 9 | 0 |
| Yanked % | 0.0% | 12.5% | 0.0% |
| Edition | 2018 | 2021 | — |
| MSRV | — | 1.75.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •fs4 leads with a health score of 67/100, but none of the options score above 80.
- •fs2 has the most downloads (70.0M), suggesting wider adoption.
- •fs2 is depended on by 12.8K crates — strongest ecosystem trust.
- •⚠ fd-lock-rs, fs2 have not been updated in over a year.
- •fd-lock-rs, fs2 are pre-1.0 — API may change.