Crates / enumflags2_derive / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to enumflags2_derive
Short answerThe closest alternatives to enumflags2_derive on crates.io data are bitflags (5.8M real downloads a day), synstructure (2.6M real downloads a day), strum_macros (1.9M real downloads a day). Of the 8 we list, the most used is bitflags, and 7 shipped a release in the last year. enumflags2_derive itself gets 405,222 a day with 4 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs enumflags2_derive | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| bitflags Widely used | 5,776,464 | 14.26x | 5,303 | 44d | keyword "bitflags" | compare |
| synstructure Established | 2,554,307 | 6.30x | 146 | 3mo | keyword "enum" | compare |
| strum_macros Widely used | 1,935,017 | 4.78x | 2,140 | 8mo | keyword "enum" | compare |
| strum Widely used | 1,901,257 | 4.69x | 5,075 | 8mo | keyword "enum" | compare |
| quick-error Established | 1,130,044 | 2.79x | 293 | 5.5y | keyword "enum" | compare |
| num_enum Widely used | 760,679 | 1.88x | 1,159 | 7mo | keyword "enum" | compare |
| enum-ordinalize Pulled in | 394,354 | 0.97x | 24 | 3mo | keyword "enum" | compare |
| enum-ordinalize-derive Pulled in | 362,020 | 0.89x | 2 | 3mo | keyword "enum" | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with enumflags2_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 enumflags2_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 enumflags2_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 steady. 5,776,464 real downloads a day.bitflagsRust crate. A macro to generate structures which behave like bitflags. Real use: 5.8M downloads a day on quiet days; 5,303 crates depend on it.Read it next →Also worth your time