Decision Workspace
drop_code vs copy_impl vs enclose
Side-by-side comparison of Rust crates
45
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.
55
enclose
growingv1.2.1
A convenient macro, for cloning values into a closure.
Core Metrics
| drop_code | copy_impl | enclose | |
|---|---|---|---|
| Health Score | 45 | 39 | 55 |
| Total Downloads | 2.2K | 5.1K | 2.6M |
| 30d Downloads | 0 | 0 | 57.5K |
| Dependents | 0 | 0 | 164 |
| Releases | 2 | 4 | 10 |
| Last Updated | 454d ago | 836d ago | 454d ago |
| Age | 2y 3m | 2y 3m | 7y 12m |
Health Breakdown
drop_code
Maintenance
5
Quality
21
Community
5
Popularity
4
Documentation
10
copy_impl
Maintenance
10
Quality
10
Community
5
Popularity
4
Documentation
10
enclose
Maintenance
5
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 55/100, but none of the options score above 80.
- •enclose is depended on by 164 crates — strongest ecosystem trust.
- •⚠ drop_code, copy_impl, enclose have not been updated in over a year.
- •copy_impl is pre-1.0 — API may change.