Decision Workspace
zst vs size-trait vs zeroize
Side-by-side comparison of Rust crates
46
zst
growingv0.1.2
Zero-sized generic type with the associated type exposing the type parameter
38
size-trait
growingv0.1.0
Traits for restricting the size of type parameters.
78
zeroize
stablev1.9.1
Securely clear secrets from memory with a simple trait built on stable Rust primitives which guarantee memory is zeroed using an operation will not be 'optimized away' by the compiler. Uses a portable pure Rust implementation that works everywhere, even WASM!
Core Metrics
| zst | size-trait | zeroize | |
|---|---|---|---|
| Health Score | 46 | 38 | 78 |
| Total Downloads | 5.4K | 1.6K | 755.0M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 13 | 0 | 51.4K |
| Releases | 3 | 1 | 47 |
| Last Updated | 1546d ago | 1177d ago | 3d ago |
| Age | 4y 7m | 3y 2m | 8y |
Health Breakdown
zst
Maintenance
4
Quality
16
Community
9
Popularity
4
Documentation
13
size-trait
Maintenance
1
Quality
16
Community
6
Popularity
4
Documentation
11
zeroize
Maintenance
18
Quality
17
Community
20
Popularity
8
Documentation
15
Technical Details
| zst | size-trait | zeroize | |
|---|---|---|---|
| Version | 0.1.2 | 0.1.0 | 1.9.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | non-standard | Apache-2.0 OR MIT |
| Dependencies | 5 | 0 | 2 |
| Crate Size | 8KB | 15KB | 25KB |
| Features | 3 | 0 | 6 |
| Yanked % | 0.0% | 0.0% | 57.5% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | — | 1.85 |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •zeroize leads with a health score of 78/100, but none of the options score above 80.
- •zeroize is depended on by 51.4K crates — strongest ecosystem trust.
- •⚠ zst, size-trait have not been updated in over a year.
- •zst, size-trait are pre-1.0 — API may change.