Decision Workspace
ptr-union vs erasable vs enum-ptr-derive
Side-by-side comparison of Rust crates
47
ptr-union
growingv2.3.0
Pointer union types the size of a pointer by storing the tag in the alignment bits.
53
erasable
growingv1.3.0
Type-erased thin pointers.
48
enum-ptr-derive
growingv0.2.0
Ergonomic tagged pointer
Core Metrics
| ptr-union | erasable | enum-ptr-derive | |
|---|---|---|---|
| Health Score | 47 | 53 | 48 |
| Total Downloads | 26.7K | 2.2M | 19.5K |
| 30d Downloads | 1.8K | 290.2K | 63 |
| Dependents | 12 | 63 | 11 |
| Releases | 11 | 6 | 11 |
| Last Updated | 435d ago | 435d ago | 533d ago |
| Age | 6y 1m | 6y 1m | 3y 4m |
Health Breakdown
ptr-union
Maintenance
5
Quality
16
Community
9
Popularity
5
Documentation
12
erasable
Maintenance
4
Quality
18
Community
11
Popularity
8
Documentation
12
enum-ptr-derive
Maintenance
7
Quality
15
Community
8
Popularity
5
Documentation
13
Technical Details
| ptr-union | erasable | enum-ptr-derive | |
|---|---|---|---|
| Version | 2.3.0 | 1.3.0 | 0.2.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 3 | 3 |
| Crate Size | 9KB | 11KB | 4KB |
| Features | 2 | 2 | 0 |
| Yanked % | 36.4% | 16.7% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.80 | 1.80 | — |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •erasable leads with a health score of 53/100, but none of the options score above 80.
- •⚠ ptr-union, erasable, enum-ptr-derive have not been updated in over a year.
- •enum-ptr-derive is pre-1.0 — API may change.