Decision Workspace
statecraft vs MagicStateMachines vs state-machines
Side-by-side comparison of Rust crates
46
statecraft
experimentalv0.1.0
State machines with compile-time enforced transitions
52
MagicStateMachines
experimentalv0.1.2
Ergonomic typestate wrappers for compiler-enforced state machines with separable contracts
62
state-machines
experimentalv0.31.0
Type-safe state machines with hierarchical states, guards, callbacks, and async support - Rust port of Ruby's state_machines gem
Core Metrics
| statecraft | MagicStateMachines | state-machines | |
|---|---|---|---|
| Health Score | 46 | 52 | 62 |
| Total Downloads | 56.8K | 61 | 17.2K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 141 |
| Releases | 1 | 3 | 19 |
| Last Updated | 94d ago | 119d ago | today |
| Age | 3m | 4m | 12m |
Health Breakdown
statecraft
Maintenance
8
Quality
13
Community
6
Popularity
6
Documentation
13
MagicStateMachines
Maintenance
13
Quality
18
Community
6
Popularity
2
Documentation
13
state-machines
Maintenance
19
Quality
11
Community
12
Popularity
5
Documentation
15
Technical Details
| statecraft | MagicStateMachines | state-machines | |
|---|---|---|---|
| Version | 0.1.0 | 0.1.2 | 0.31.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 3 | 7 |
| Crate Size | 17KB | 67KB | 46KB |
| Features | 0 | 11 | 8 |
| Yanked % | 0.0% | 0.0% | 26.3% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | — | 1.99 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •state-machines leads with a health score of 62/100, but none of the options score above 80.
- •statecraft has the most downloads (56.8K), suggesting wider adoption.
- •state-machines is depended on by 141 crates — strongest ecosystem trust.