Crates / const-random-macro / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to const-random-macro
Short answerThe closest alternatives to const-random-macro on crates.io data are lazy_static (2.4M real downloads a day), schemars (2.4M real downloads a day), tracing-attributes (2.3M real downloads a day). Of the 8 we list, the most used is lazy_static, and 6 shipped a release in the last year. const-random-macro itself gets 551,480 a day with 1 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs const-random-macro | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| lazy_static Foundational | 2,449,997 | 4.44x | 10,953 | 23d | keyword "macro" | compare |
| schemars Widely used | 2,383,996 | 4.32x | 6,659 | 12d | keyword "rust" | compare |
| tracing-attributes Pulled in | 2,272,684 | 4.12x | 48 | 11mo | keyword "macro" | compare |
| proc-macro-crate Established | 1,677,715 | 3.04x | 959 | 8mo | keyword "macro" | compare |
| quick-error Established | 1,130,044 | 2.05x | 293 | 5.5y | keyword "macro" | compare |
| schemars_derive Pulled in | 952,344 | 1.73x | 6 | 12d | keyword "rust" | compare |
| document-features Established | 703,484 | 1.28x | 672 | 12mo | keyword "macro" | compare |
| new_debug_unreachable Pulled in | 691,350 | 1.25x | 23 | 2.6y | keyword "macro" | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with const-random-macro; 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 const-random-macro: 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 const-random-macro, 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: Foundational and steady. 2,449,997 real downloads a day.lazy_staticRust crate. A macro for declaring lazily evaluated statics in Rust. Real use: 2.4M downloads a day on quiet days; 10,953 crates depend on it.Read it next →Also worth your time