Decision Workspace
scopeguard vs supply-chain-trust-example-crate-000046 vs scopeguard-lite
Side-by-side comparison of Rust crates
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.
39
supply-chain-trust-example-crate-000046
growingv1.2.1
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.
43
scopeguard-lite
growingv1.0.0
A lightweight way to defer execution of a block to the end of the scope, and to run code during an unwind.
Core Metrics
| scopeguard | supply-chain-trust-example-crate-000046 | scopeguard-lite | |
|---|---|---|---|
| Health Score | 59 | 39 | 43 |
| Total Downloads | 1.0B | 1.6K | 400 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 10.4K | 0 | 0 |
| Releases | 11 | 2 | 1 |
| Last Updated | 1180d ago | 571d ago | 379d ago |
| Age | 11y 5m | 1y 11m | 1y |
Health Breakdown
scopeguard
Maintenance
3
Quality
20
Community
17
Popularity
8
Documentation
11
supply-chain-trust-example-crate-000046
Maintenance
5
Quality
16
Community
6
Popularity
4
Documentation
8
scopeguard-lite
Maintenance
2
Quality
20
Community
6
Popularity
3
Documentation
12
Technical Details
| scopeguard | supply-chain-trust-example-crate-000046 | scopeguard-lite | |
|---|---|---|---|
| Version | 1.2.0 | 1.2.1 | 1.0.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 0 |
| Crate Size | 12KB | 12KB | 8KB |
| Features | 2 | 2 | 0 |
| Yanked % | 9.1% | 100.0% | 0.0% |
| Edition | — | — | 2021 |
| MSRV | — | — | 1.61 |
| Owners | 2 | 1 | 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.
- •⚠ scopeguard, supply-chain-trust-example-crate-000046, scopeguard-lite have not been updated in over a year.