Crates / zeroize_derive / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to zeroize_derive
Short answerThe closest alternatives to zeroize_derive on crates.io data are secrecy (573K real downloads a day), compact_str (712K real downloads a day), sdd (239K real downloads a day). Of the 8 we list, the most used is getrandom, and 6 shipped a release in the last year. zeroize_derive itself gets 979,424 a day with 26 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs zeroize_derive | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| secrecy Widely used | 573,031 | 0.59x | 1,604 | 2.0y | category Cryptography, category Memory management, keyword "memory", keyword "secure" | compare |
| compact_str Established | 712,106 | 0.73x | 575 | 3mo | category Memory management, keyword "memory" | compare |
| sdd Pulled in | 238,698 | 0.24x | 7 | 38d | category Memory management, keyword "memory" | compare |
| plain Pulled in | 429,597 | 0.44x | 40 | 8.9y | category No standard library, keyword "memory" | compare |
| getrandom Widely used | 7,623,482 | 7.78x | 5,558 | 4mo | category No standard library, category Operating systems | compare |
| libc Foundational | 4,964,021 | 5.07x | 17,338 | 8d | category No standard library, category Operating systems | compare |
| digest Widely used | 3,862,411 | 3.94x | 1,197 | 6mo | category Cryptography, category No standard library | compare |
| block-buffer Pulled in | 3,815,018 | 3.90x | 23 | 4mo | category Cryptography, category No standard library | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with zeroize_derive; read its description before you swap.
- More dependents means more answered questions and a smaller chance it disappears.
- Check the last release against how fast you need fixes. For zeroize_derive: is it still maintained?
Rules
Alternatives = tracked crates (top 1000 by downloads) that share a specific crates.io category (2 points each) or keyword (3 points each) with zeroize_derive, most similar first; its own parts (same name prefix) and crates it depends on or that depend on it are left out, because those are companions, not substitutes. Real downloads = quiet-day median, crates.io data Oct 24, 2026. Built when we find 3 or more.
Up next
The closest alternative: Widely used and quiet for years. 573,031 real downloads a day.secrecyRust crate. Wrapper types and traits for secret management which help ensure they aren't accidentally copied, logged, or otherwise exposed (as much as possible), and...Read it next →Also worth your time