Decision Workspace
catch-unwind vs scopeguard vs nounwind-macros
Side-by-side comparison of Rust crates
49
catch-unwind
growingv0.3.0
Wrappers for catch_unwind that handle the edge case of the caught panic payload panicing
59
scopeguard
growingv1.2.0
A RAII scope guard that will run a given closure when it goes out of scope, even if the code between panics (assuming unwinding panic). Defines the macros `defer!`, `defer_on_unwind!`, `defer_on_success!` as shorthands for guards with one of the implemented strategies.
55
nounwind-macros
growingv0.1.7
Implementation of the #[nounwind] attribute macro
Core Metrics
| catch-unwind | scopeguard | nounwind-macros | |
|---|---|---|---|
| Health Score | 49 | 59 | 55 |
| Total Downloads | 5.0K | 1.0B | 1.2K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 10.4K | 8 |
| Releases | 4 | 11 | 3 |
| Last Updated | 842d ago | 1180d ago | 16d ago |
| Age | 2y 3m | 11y 5m | 1y |
Health Breakdown
catch-unwind
Maintenance
10
Quality
16
Community
6
Popularity
4
Documentation
13
scopeguard
Maintenance
3
Quality
20
Community
17
Popularity
8
Documentation
11
nounwind-macros
Maintenance
16
Quality
14
Community
9
Popularity
4
Documentation
12
Technical Details
| catch-unwind | scopeguard | nounwind-macros | |
|---|---|---|---|
| Version | 0.3.0 | 1.2.0 | 0.1.7 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | Zlib OR MIT OR Apache-2.0 | MIT OR Apache-2.0 | Apache-2.0 OR MIT |
| Dependencies | 0 | 0 | 4 |
| Crate Size | 7KB | 12KB | 3KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 9.1% | 0.0% |
| Edition | 2021 | — | 2021 |
| MSRV | — | — | 1.71 |
| Owners | 1 | 2 | 1 |
Links
Quick Verdict
- •scopeguard leads with a health score of 59/100, but none of the options score above 80.
- •scopeguard is depended on by 10.4K crates — strongest ecosystem trust.
- •⚠ catch-unwind, scopeguard have not been updated in over a year.
- •catch-unwind, nounwind-macros are pre-1.0 — API may change.