Decision Workspace
ffi-destruct vs heap-drop-macros vs destruct-drop
Side-by-side comparison of Rust crates
43
ffi-destruct
growingv0.1.3
Generates destructors for structures that contain raw pointers in the FFI.
51
heap-drop-macros
experimentalv1.0.1
Derive macro for HeapDrop trait - enables heap-based dropping of deeply nested structures
45
destruct-drop
growingv0.2.0
Macro for dropping the fields of a struct or enum without dropping the container.
Core Metrics
| ffi-destruct | heap-drop-macros | destruct-drop | |
|---|---|---|---|
| Health Score | 43 | 51 | 45 |
| Total Downloads | 5.8K | 51 | 62.3K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 2 | 21 |
| Releases | 4 | 2 | 2 |
| Last Updated | 1452d ago | 29d ago | 1220d ago |
| Age | 3y 11m | 1m | 5y |
Health Breakdown
ffi-destruct
Maintenance
10
Quality
14
Community
5
Popularity
4
Documentation
10
heap-drop-macros
Maintenance
12
Quality
17
Community
7
Popularity
2
Documentation
13
destruct-drop
Maintenance
3
Quality
15
Community
9
Popularity
6
Documentation
12
Technical Details
| ffi-destruct | heap-drop-macros | destruct-drop | |
|---|---|---|---|
| Version | 0.1.3 | 1.0.1 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | Apache-2.0 | MIT | MIT |
| Dependencies | 4 | 3 | 1 |
| Crate Size | 9KB | 2KB | 2KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •heap-drop-macros leads with a health score of 51/100, but none of the options score above 80.
- •destruct-drop has the most downloads (62.3K), suggesting wider adoption.
- •⚠ ffi-destruct, destruct-drop have not been updated in over a year.
- •ffi-destruct, destruct-drop are pre-1.0 — API may change.