Decision Workspace
stubby vs stub_trait vs mockall
Side-by-side comparison of Rust crates
38
stubby
growingv0.3.3
stubbing that doesn't hurt you or your IDE
49
stub_trait
growingv1.1.0
Macro to implement stub object for a trait.
64
mockall
growingv0.15.0
A powerful mock object library for Rust.
Core Metrics
| stubby | stub_trait | mockall | |
|---|---|---|---|
| Health Score | 38 | 49 | 64 |
| Total Downloads | 13.9K | 6.0K | 176.9M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 6 | 24.4K |
| Releases | 12 | 4 | 34 |
| Last Updated | 696d ago | 1393d ago | 103d ago |
| Age | 3y 3m | 4y | 7y 3m |
Health Breakdown
stubby
Maintenance
6
Quality
10
Community
5
Popularity
5
Documentation
12
stub_trait
Maintenance
4
Quality
20
Community
7
Popularity
5
Documentation
13
mockall
Maintenance
14
Quality
13
Community
14
Popularity
8
Documentation
15
Technical Details
| stubby | stub_trait | mockall | |
|---|---|---|---|
| Version | 0.3.3 | 1.1.0 | 0.15.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 1 | 3 | 17 |
| 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 64/100, but none of the options score above 80.
- •mockall is depended on by 24.4K crates — strongest ecosystem trust.
- •⚠ stubby, stub_trait have not been updated in over a year.
- •stubby, mockall are pre-1.0 — API may change.