Crates / peeking_take_while / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to peeking_take_while
Short answerThe closest alternatives to peeking_take_while on crates.io data are itertools (4.5M real downloads a day), utf8_iter (2.1M real downloads a day), walkdir (1.9M real downloads a day). Of the 8 we list, the most used is thiserror, and 4 shipped a release in the last year. peeking_take_while itself gets 123,016 a day with 7 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs peeking_take_while | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| itertools Widely used | 4,545,996 | 36.95x | 8,656 | 4mo | category No standard library, category Rust patterns, keyword "iterator" | compare |
| utf8_iter Pulled in | 2,136,300 | 17.37x | 12 | 2.9y | keyword "iterator" | compare |
| walkdir Widely used | 1,935,670 | 15.74x | 7,101 | 2.6y | keyword "iterator" | compare |
| utf16_iter Pulled in | 349,411 | 2.84x | 3 | 2.9y | keyword "iterator" | compare |
| globwalk Established | 177,688 | 1.44x | 127 | 2.8y | keyword "iterator" | compare |
| thiserror Foundational | 5,048,791 | 41.04x | 75,923 | 31d | category No standard library, category Rust patterns | compare |
| once_cell Widely used | 3,785,180 | 30.77x | 8,656 | 7mo | category Rust patterns | compare |
| pin-project-lite Widely used | 3,270,978 | 26.59x | 1,708 | 8mo | category No standard library, category Rust patterns | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with peeking_take_while; 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 peeking_take_while: 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 peeking_take_while, 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. 4,545,996 real downloads a day.itertoolsRust crate. Extra iterator adaptors, iterator methods, free functions, and macros. Real use: 4.5M downloads a day on quiet days; 8,656 crates depend on it.Read it next →Also worth your time