Decision Workspace
enclose vs drop_code vs enclose2
Side-by-side comparison of Rust crates
56
enclose
growingv1.2.1
A convenient macro, for cloning values into a closure.
46
drop_code
growingv1.0.1
A macro that allows you to implement code that will be automatically executed after the function code has finished, be it the end of the function or even a panic state.
43
enclose2
experimentalv1.3.1
A convenient macro, for cloning values into a closure.
Core Metrics
| enclose | drop_code | enclose2 | |
|---|---|---|---|
| Health Score | 56 | 46 | 43 |
| Total Downloads | 2.2M | 2.1K | 23 |
| 30d Downloads | 75.1K | 4 | 3 |
| Dependents | 162 | 0 | 0 |
| Releases | 10 | 2 | 1 |
| Last Updated | 346d ago | 346d ago | 70d ago |
| Age | 7y 8m | 1y 11m | 2m |
Health Breakdown
enclose
Maintenance
6
Quality
21
Community
11
Popularity
8
Documentation
10
drop_code
Maintenance
7
Quality
20
Community
5
Popularity
4
Documentation
10
enclose2
Maintenance
9
Quality
17
Community
5
Popularity
2
Documentation
10
Technical Details
| enclose | drop_code | enclose2 | |
|---|---|---|---|
| Version | 1.2.1 | 1.0.1 | 1.3.1 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 1 |
| Crate Size | 12KB | 11KB | 15KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enclose leads with a health score of 56/100, but none of the options score above 80.
- •enclose is depended on by 162 crates — strongest ecosystem trust.