Decision Workspace
enclose vs drop_code vs copy_impl
Side-by-side comparison of Rust crates
55
enclose
growingv1.2.1
A convenient macro, for cloning values into a closure.
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.
Core Metrics
| enclose | drop_code | copy_impl | |
|---|---|---|---|
| Health Score | 55 | 45 | 39 |
| Total Downloads | 2.6M | 2.2K | 5.1K |
| 30d Downloads | 57.5K | 0 | 0 |
| Dependents | 164 | 0 | 0 |
| Releases | 10 | 2 | 4 |
| Last Updated | 454d ago | 454d ago | 836d ago |
| Age | 7y 12m | 2y 3m | 2y 3m |
Health Breakdown
enclose
Maintenance
5
Quality
21
Community
11
Popularity
8
Documentation
10
drop_code
Maintenance
5
Quality
21
Community
5
Popularity
4
Documentation
10
copy_impl
Maintenance
10
Quality
10
Community
5
Popularity
4
Documentation
10
Technical Details
| enclose | drop_code | copy_impl | |
|---|---|---|---|
| Version | 1.2.1 | 1.0.1 | 0.3.3 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | Apache-2.0 | MIT/Apache-2.0 |
| Dependencies | 0 | 0 | 0 |
| Crate Size | 12KB | 11KB | 8KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 50.0% |
| Edition | 2024 | 2024 | 2021 |
| 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.
- •⚠ enclose, drop_code, copy_impl have not been updated in over a year.
- •copy_impl is pre-1.0 — API may change.