Decision Workspace
unsafe-erased vs raw-parts vs debug_unsafe
Side-by-side comparison of Rust crates
38
unsafe-erased
growingv0.1.0
This crate can be used for unsafe type erasure. caution is advised.
72
raw-parts
stablev2.2.2
Ergonomic wrapper around `Vec::from_raw_parts` and `Vec::into_raw_parts`.
64
debug_unsafe
growingv0.1.4
Uses `debug-assertions` as a switch of safe/unsafe behaviour
Core Metrics
| unsafe-erased | raw-parts | debug_unsafe | |
|---|---|---|---|
| Health Score | 38 | 72 | 64 |
| Total Downloads | 2.0K | 83.7K | 3.7M |
| 30d Downloads | 115 | 654 | 978.3K |
| Dependents | 4 | 19 | 43 |
| Releases | 1 | 11 | 5 |
| Last Updated | 406d ago | 11d ago | 46d ago |
| Age | 1y 1m | 4y 4m | 1y 1m |
Health Breakdown
unsafe-erased
Maintenance
2
Quality
15
Community
4
Popularity
4
Documentation
13
raw-parts
Maintenance
16
Quality
20
Community
15
Popularity
6
Documentation
15
debug_unsafe
Maintenance
15
Quality
16
Community
10
Popularity
8
Documentation
15
Technical Details
| unsafe-erased | raw-parts | debug_unsafe | |
|---|---|---|---|
| Version | 0.1.0 | 2.2.2 | 0.1.4 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 2 | 1 | 1 |
| Crate Size | 5KB | 7KB | 7KB |
| Features | 0 | 0 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | — | 1.76.0 | 1.58 |
| Owners | 1 | 2 (team) | 1 |
Links
Quick Verdict
- •raw-parts leads with a health score of 72/100, but none of the options score above 80.
- •debug_unsafe has the most downloads (3.7M), suggesting wider adoption.
- •⚠ unsafe-erased has not been updated in over a year.
- •unsafe-erased, debug_unsafe are pre-1.0 — API may change.