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.
38
stubby
growingv0.3.3
stubbing that doesn't hurt you or your IDE
68
mockall
growingv0.15.0
A powerful mock object library for Rust.
Core Metrics
| stub_trait | stubby | mockall | |
|---|---|---|---|
| Health Score | 50 | 38 | 68 |
| Total Downloads | 5.9K | 13.8K | 146.7M |
| 30d Downloads | 0 | 0 | 4.9M |
| Dependents | 6 | 0 | 20.6K |
| Releases | 4 | 12 | 34 |
| Last Updated | 1305d ago | 608d ago | 15d ago |
| Age | 3y 10m | 3y | 7y |
Health Breakdown
stub_trait
Maintenance
5
Quality
20
Community
7
Popularity
5
Documentation
13
stubby
Maintenance
6
Quality
10
Community
5
Popularity
5
Documentation
12
mockall
Maintenance
18
Quality
13
Community
14
Popularity
8
Documentation
15
Technical Details
| stub_trait | stubby | mockall | |
|---|---|---|---|
| Version | 1.1.0 | 0.3.3 | 0.15.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 1 | 17 |
| 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 68/100, but none of the options score above 80.
- •mockall is depended on by 20.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.