Crates / bitflags / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to bitflags
Short answerThe closest alternatives to bitflags on crates.io data are bit-vec (1.7M real downloads a day), winnow (3.6M real downloads a day), nom (2.2M real downloads a day). Of the 5 we list, the most used is winnow, and 2 shipped a release in the last year. bitflags itself gets 5,776,464 a day with 5,303 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs bitflags | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| bit-vec Established | 1,706,297 | 0.30x | 299 | 3mo | keyword "bit", keyword "bitmask" | compare |
| winnow Established | 3,579,683 | 0.62x | 448 | 3mo | keyword "bit" | compare |
| nom Widely used | 2,156,544 | 0.37x | 2,600 | 21mo | keyword "bit" | compare |
| enumflags2 Established | 405,378 | 0.07x | 215 | 17mo | keyword "bitflags" | compare |
| enumflags2_derive Pulled in | 405,222 | 0.07x | 4 | 17mo | keyword "bitflags" | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with bitflags; 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 bitflags: 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 bitflags, 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: Established and gaining. 1,706,297 real downloads a day.bit-vecRust crate. A vector of bits. Real use: 1.7M downloads a day on quiet days; 299 crates depend on it.Read it next →Also worth your time