Decision Workspace
stub_trait vs stubby vs mockall
Side-by-side comparison of Rust crates
50
stub_trait
growingv1.1.0
Macro to implement stub object for a trait.
39
stubby
growingv0.3.3
stubbing that doesn't hurt you or your IDE
63
mockall
growingv0.14.0
A powerful mock object library for Rust.
Core Metrics
| stub_trait | stubby | mockall | |
|---|---|---|---|
| Health Score | 50 | 39 | 63 |
| Total Downloads | 5.9K | 13.8K | 111.2M |
| 30d Downloads | 23 | 7 | 8.6M |
| Dependents | 6 | 0 | 16.6K |
| Releases | 4 | 12 | 33 |
| Last Updated | 1197d ago | 500d ago | 125d ago |
| Age | 3y 6m | 2y 9m | 6y 8m |
Health Breakdown
stub_trait
Maintenance
5
Quality
20
Community
7
Popularity
5
Documentation
13
stubby
Maintenance
7
Quality
10
Community
5
Popularity
5
Documentation
12
mockall
Maintenance
13
Quality
13
Community
14
Popularity
8
Documentation
15
Technical Details
| stub_trait | stubby | mockall | |
|---|---|---|---|
| Version | 1.1.0 | 0.3.3 | 0.14.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 1 | 16 |
| Crate Size | 45KB | 8KB | 26KB |
| Features | 0 | 1 | 1 |
| Yanked % | 0.0% | 75.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.58 | 1.77.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •mockall leads with a health score of 63/100, but none of the options score above 80.
- •mockall is depended on by 16.6K crates — strongest ecosystem trust.
- •⚠ stub_trait, stubby have not been updated in over a year.
- •stubby, mockall are pre-1.0 — API may change.