Decision Workspace
kspin vs kernel_guard vs mcslock
Side-by-side comparison of Rust crates
61
kspin
growingv0.1.1
Spinlocks used for kernel space that can disable preemption or IRQs in the critical section.
66
kernel_guard
growingv0.1.3
RAII wrappers to create a critical section with local IRQs or preemption disabled
50
mcslock
growingv0.4.1
An implementation of Mellor-Crummey and Scott contention-free lock for mutual exclusion, referred to as MCS lock.
Core Metrics
| kspin | kernel_guard | mcslock | |
|---|---|---|---|
| Health Score | 61 | 66 | 50 |
| Total Downloads | 84.9K | 96.2K | 7.9K |
| 30d Downloads | 8.1K | 9.2K | 55 |
| Dependents | 165 | 53 | 10 |
| Releases | 2 | 4 | 7 |
| Last Updated | 234d ago | 109d ago | 416d ago |
| Age | 1y 8m | 2y 10m | 2y 3m |
Health Breakdown
kspin
Maintenance
8
Quality
17
Community
17
Popularity
6
Documentation
13
kernel_guard
Maintenance
14
Quality
17
Community
16
Popularity
6
Documentation
13
mcslock
Maintenance
10
Quality
11
Community
9
Popularity
5
Documentation
15
Technical Details
| kspin | kernel_guard | mcslock | |
|---|---|---|---|
| Version | 0.1.1 | 0.1.3 | 0.4.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0 | GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0 | MIT OR Apache-2.0 |
| Dependencies | 2 | 2 | 2 |
| Crate Size | 7KB | 5KB | 47KB |
| Features | 2 | 2 | 4 |
| Yanked % | 0.0% | 0.0% | 71.4% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | 1.65.0 |
| Owners | 2 (team) | 2 (team) | 1 |
Links
Quick Verdict
- •kernel_guard leads with a health score of 66/100, but none of the options score above 80.
- •kspin is depended on by 165 crates — strongest ecosystem trust.
- •⚠ mcslock has not been updated in over a year.