Decision Workspace
sharded_rwlock vs lock-db vs sharded_mutex
Side-by-side comparison of Rust crates
32
sharded_rwlock
growingv0.0.0
Not so bad global rwlocks
58
lock-db
experimentalv1.0.0
Lock manager and deadlock detection for Rust databases - row/range locks, multiple granularities, and wait-for cycle detection.
50
sharded_mutex
growingv2.1.0
No per-object memory overhead locks. Pseudo atomic ops for Copy/PartialEq types.
Core Metrics
| sharded_rwlock | lock-db | sharded_mutex | |
|---|---|---|---|
| Health Score | 32 | 58 | 50 |
| Total Downloads | 1.6K | 75 | 26.4K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 2 |
| Releases | 1 | 5 | 22 |
| Last Updated | 1591d ago | 37d ago | 742d ago |
| Age | 4y 4m | 1m | 4y 4m |
Health Breakdown
sharded_rwlock
Maintenance
1
Quality
15
Community
2
Popularity
4
Documentation
10
lock-db
Maintenance
17
Quality
18
Community
6
Popularity
2
Documentation
15
sharded_mutex
Maintenance
6
Quality
21
Community
6
Popularity
5
Documentation
12
Technical Details
| sharded_rwlock | lock-db | sharded_mutex | |
|---|---|---|---|
| Version | 0.0.0 | 1.0.0 | 2.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | Apache-2.0 OR MIT | MIT OR Apache-2.0 |
| Dependencies | 1 | 4 | 4 |
| Crate Size | 2KB | 98KB | 9KB |
| Features | 0 | 3 | 8 |
| Yanked % | 0.0% | 0.0% | 4.5% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | — | 1.85 | 1.79.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •lock-db leads with a health score of 58/100, but none of the options score above 80.
- •sharded_mutex has the most downloads (26.4K), suggesting wider adoption.
- •⚠ sharded_rwlock, sharded_mutex have not been updated in over a year.
- •sharded_rwlock is pre-1.0 — API may change.