Decision Workspace
raii_flock vs fmutex vs fs4
Side-by-side comparison of Rust crates
39
raii_flock
growingv0.2.0
Little library implementing a wrapper over a file that's locked on creation and unlocked when it goes out of scope.
47
fmutex
growingv0.3.0
Cross-platform mutual exclusion across processes on a file or path
67
fs4
stablev1.1.0
No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix.
Core Metrics
| raii_flock | fmutex | fs4 | |
|---|---|---|---|
| Health Score | 39 | 47 | 67 |
| Total Downloads | 5.8K | 80.6K | 52.9M |
| 30d Downloads | 679 | 9.0K | 3.7M |
| Dependents | 98 | 75 | 3.5K |
| Releases | 2 | 4 | 32 |
| Last Updated | 1790d ago | 417d ago | 76d ago |
| Age | 5y 4m | 4y 5m | 4y 6m |
Health Breakdown
raii_flock
Maintenance
3
Quality
15
Community
8
Popularity
4
Documentation
9
fmutex
Maintenance
4
Quality
15
Community
11
Popularity
6
Documentation
11
fs4
Maintenance
15
Quality
14
Community
15
Popularity
8
Documentation
15
Technical Details
| raii_flock | fmutex | fs4 | |
|---|---|---|---|
| Version | 0.2.0 | 0.3.0 | 1.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | Unlicense | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 3 | 13 |
| Crate Size | 2KB | 10KB | 45KB |
| Features | 0 | 0 | 9 |
| Yanked % | 0.0% | 0.0% | 12.5% |
| Edition | 2018 | 2018 | 2021 |
| MSRV | — | 1.66.0 | 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.
- •fs4 is depended on by 3.5K crates — strongest ecosystem trust.
- •⚠ raii_flock, fmutex have not been updated in over a year.
- •raii_flock, fmutex are pre-1.0 — API may change.