Decision Workspace
raii_flock vs fmutex vs fs4
Side-by-side comparison of Rust crates
41
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.
48
fmutex
growingv0.3.0
Cross-platform mutual exclusion across processes on a file or path
64
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 | 41 | 48 | 64 |
| Total Downloads | 7.9K | 117.2K | 72.0M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 123 | 113 | 6.6K |
| Releases | 2 | 4 | 32 |
| Last Updated | 1878d ago | 506d ago | 165d ago |
| Age | 5y 7m | 4y 8m | 4y 9m |
Health Breakdown
raii_flock
Maintenance
3
Quality
15
Community
9
Popularity
5
Documentation
9
fmutex
Maintenance
4
Quality
15
Community
12
Popularity
6
Documentation
11
fs4
Maintenance
12
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 64/100, but none of the options score above 80.
- •fs4 is depended on by 6.6K 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.