Decision Workspace
filock vs fs4 vs filelock
Side-by-side comparison of Rust crates
48
filock
experimentalv0.1.0-alpha.1
Thread-safe, closure-based file locking for Rust using flock(2)
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
| filock | fs4 | filelock | |
|---|---|---|---|
| Health Score | 48 | 64 | 52 |
| Total Downloads | 34 | 72.0M | 8.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 1 | 6.6K | 7 |
| Releases | 1 | 32 | 11 |
| Last Updated | 50d ago | 165d ago | 69d ago |
| Age | 1m | 4y 9m | 5y 1m |
Health Breakdown
filock
Maintenance
10
Quality
14
Community
7
Popularity
2
Documentation
15
fs4
Maintenance
12
Quality
14
Community
15
Popularity
8
Documentation
15
filelock
Maintenance
12
Quality
15
Community
8
Popularity
5
Documentation
12
Technical Details
| filock | fs4 | filelock | |
|---|---|---|---|
| Version | 0.1.0-alpha.1 | 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 | 25KB | 45KB | 19KB |
| Features | 0 | 9 | 1 |
| Yanked % | 0.0% | 12.5% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.85 | 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.
- •filock, filelock are pre-1.0 — API may change.