Decision Workspace
stubby vs stub_trait vs mockall
Side-by-side comparison of Rust crates
39
stubby
growingv0.3.3
stubbing that doesn't hurt you or your IDE
50
stub_trait
growingv1.1.0
Macro to implement stub object for a trait.
63
mockall
growingv0.14.0
A powerful mock object library for Rust.
Core Metrics
| stubby | stub_trait | mockall | |
|---|---|---|---|
| Health Score | 39 | 50 | 63 |
| Total Downloads | 13.8K | 5.9K | 111.2M |
| 30d Downloads | 7 | 22 | 8.3M |
| Dependents | 0 | 6 | 16.6K |
| Releases | 12 | 4 | 33 |
| Last Updated | 500d ago | 1197d ago | 125d ago |
| Age | 2y 9m | 3y 6m | 6y 8m |
Health Breakdown
stubby
Maintenance
7
Quality
10
Community
5
Popularity
5
Documentation
12
stub_trait
Maintenance
5
Quality
20
Community
7
Popularity
5
Documentation
13
mockall
Maintenance
13
Quality
13
Community
14
Popularity
8
Documentation
15
Technical Details
| stubby | stub_trait | mockall | |
|---|---|---|---|
| Version | 0.3.3 | 1.1.0 | 0.14.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 1 | 3 | 16 |
| Crate Size | 8KB | 45KB | 26KB |
| Features | 1 | 0 | 1 |
| Yanked % | 75.0% | 0.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.
- •⚠ stubby, stub_trait have not been updated in over a year.
- •stubby, mockall are pre-1.0 — API may change.