Decision Workspace
error_set vs declare vs wherror
Side-by-side comparison of Rust crates
59
error_set
growingv0.9.1
Quick error declarations and automatic conversions between errors for precisely typed error handling. Inspired by Zig's error set type.
44
declare
growingv0.0.1
An error set macro that simplifies error management by providing a streamlined method for defining errors and easily converting between them. Inspired by Zig's error set type.
50
wherror
growingv2.3.1
The same derive(Error) macro thiserror provides + the features you want!
Core Metrics
| error_set | declare | wherror | |
|---|---|---|---|
| Health Score | 59 | 44 | 50 |
| Total Downloads | 116.4K | 1.0K | 3.4K |
| 30d Downloads | 11.7K | 4 | 201 |
| Dependents | 42 | 0 | 2 |
| Releases | 34 | 1 | 8 |
| Last Updated | 115d ago | 476d ago | 214d ago |
| Age | 1y 11m | 1y 3m | 8m |
Health Breakdown
error_set
Maintenance
13
Quality
15
Community
10
Popularity
6
Documentation
15
declare
Maintenance
2
Quality
17
Community
6
Popularity
4
Documentation
15
wherror
Maintenance
10
Quality
15
Community
6
Popularity
4
Documentation
15
Technical Details
| error_set | declare | wherror | |
|---|---|---|---|
| Version | 0.9.1 | 0.0.1 | 2.3.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | Apache-2.0 | Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 6 | 7 | 5 |
| Crate Size | 34KB | 25KB | 40KB |
| Features | 1 | 5 | 2 |
| Yanked % | 0.0% | 0.0% | 12.5% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.86 | 1.81 | 1.61 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •error_set leads with a health score of 59/100, but none of the options score above 80.
- •⚠ declare has not been updated in over a year.
- •error_set, declare are pre-1.0 — API may change.