Decision Workspace
glock vs lock-db vs sharded_mutex
Side-by-side comparison of Rust crates
36
glock
growingv0.1.2
Granular locking crate for Rust
59
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
| glock | lock-db | sharded_mutex | |
|---|---|---|---|
| Health Score | 36 | 59 | 50 |
| Total Downloads | 4.7K | 96 | 26.4K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 2 |
| Releases | 3 | 5 | 22 |
| Last Updated | 2836d ago | 126d ago | 830d ago |
| Age | 7y 9m | 4m | 4y 7m |
Health Breakdown
glock
Maintenance
3
Quality
16
Community
5
Popularity
4
Documentation
8
lock-db
Maintenance
18
Quality
18
Community
6
Popularity
2
Documentation
15
sharded_mutex
Maintenance
6
Quality
21
Community
6
Popularity
5
Documentation
12
Technical Details
| glock | lock-db | sharded_mutex | |
|---|---|---|---|
| Version | 0.1.2 | 1.0.0 | 2.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | Apache-2.0 | Apache-2.0 OR MIT | MIT OR Apache-2.0 |
| Dependencies | 0 | 4 | 4 |
| Crate Size | 13KB | 98KB | 9KB |
| Features | 0 | 3 | 8 |
| Yanked % | 0.0% | 0.0% | 4.5% |
| Edition | — | 2024 | 2021 |
| MSRV | — | 1.85 | 1.79.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •lock-db leads with a health score of 59/100, but none of the options score above 80.
- •sharded_mutex has the most downloads (26.4K), suggesting wider adoption.
- •⚠ glock, sharded_mutex have not been updated in over a year.
- •glock is pre-1.0 — API may change.