Decision Workspace
drop_code vs copy_impl vs enclose
Side-by-side comparison of Rust crates
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.
39
copy_impl
growingv0.3.3
Macro for effortlessly duplicating impl block code across various types in Rust.
56
enclose
growingv1.2.1
A convenient macro, for cloning values into a closure.
Core Metrics
| drop_code | copy_impl | enclose | |
|---|---|---|---|
| Health Score | 46 | 39 | 56 |
| Total Downloads | 2.1K | 5.1K | 2.2M |
| 30d Downloads | 4 | 4 | 75.1K |
| Dependents | 0 | 0 | 162 |
| Releases | 2 | 4 | 10 |
| Last Updated | 346d ago | 728d ago | 346d ago |
| Age | 1y 11m | 1y 12m | 7y 8m |
Health Breakdown
drop_code
Maintenance
7
Quality
20
Community
5
Popularity
4
Documentation
10
copy_impl
Maintenance
10
Quality
10
Community
5
Popularity
4
Documentation
10
enclose
Maintenance
6
Quality
21
Community
11
Popularity
8
Documentation
10
Technical Details
| drop_code | copy_impl | enclose | |
|---|---|---|---|
| Version | 1.0.1 | 0.3.3 | 1.2.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | Apache-2.0 | MIT/Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 0 |
| Crate Size | 11KB | 8KB | 12KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 50.0% | 0.0% |
| Edition | 2024 | 2021 | 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.
- •⚠ copy_impl has not been updated in over a year.
- •copy_impl is pre-1.0 — API may change.