Decision Workspace
struct-variant vs zerocopy vs num-conv
Side-by-side comparison of Rust crates
41
struct-variant
growingv1.0.2
Minimal helper macro to generate an enum out of a list of structs.
64
zerocopy
growingv0.8.47
Zerocopy makes zero-cost memory manipulation effortless. We write "unsafe" so you don't have to.
64
num-conv
growingv0.2.1
`num_conv` is a crate to convert between integer types without using `as` casts. This provides better certainty when refactoring, makes the exact behavior of code more explicit, and allows using turbofish syntax.
Core Metrics
| struct-variant | zerocopy | num-conv | |
|---|---|---|---|
| Health Score | 41 | 64 | 64 |
| Total Downloads | 7.4K | 491.0M | 281.1M |
| 30d Downloads | 69 | 49.3M | 31.9M |
| Dependents | 0 | 6.9K | 45 |
| Releases | 3 | 157 | 3 |
| Last Updated | 1777d ago | 8d ago | 3d ago |
| Age | 4y 10m | 7y 7m | 2y 3m |
Health Breakdown
struct-variant
Maintenance
4
Quality
15
Community
5
Popularity
5
Documentation
12
zerocopy
Maintenance
18
Quality
9
Community
17
Popularity
8
Documentation
12
num-conv
Maintenance
17
Quality
16
Community
11
Popularity
8
Documentation
12
Technical Details
| struct-variant | zerocopy | num-conv | |
|---|---|---|---|
| Version | 1.0.2 | 0.8.47 | 0.2.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | BSD-2-Clause OR Apache-2.0 OR MIT | MIT OR Apache-2.0 |
| Dependencies | 5 | 8 | 0 |
| Crate Size | 6KB | 281KB | 7KB |
| Features | 2 | 7 | 0 |
| Yanked % | 66.7% | 36.3% | 0.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | 1.56.0 | 1.57.0 |
| Owners | 1 | 2 | 1 |
Links
Quick Verdict
- •zerocopy leads with a health score of 64/100, but none of the options score above 80.
- •zerocopy is depended on by 6.9K crates — strongest ecosystem trust.
- •⚠ struct-variant has not been updated in over a year.
- •zerocopy, num-conv are pre-1.0 — API may change.