Crates / unindent / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to unindent
Short answerThe closest alternatives to unindent on crates.io data are indoc (810K real downloads a day), aho-corasick (3.3M real downloads a day), strsim (3M real downloads a day). Of the 8 we list, the most used is heck, and 5 shipped a release in the last year. unindent itself gets 379,604 a day with 100 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs unindent | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| indoc Widely used | 810,408 | 2.13x | 1,667 | 15d | category Text processing, keyword "heredoc", keyword "literal" | compare |
| aho-corasick Established | 3,331,047 | 8.78x | 655 | 3mo | category Text processing, keyword "string" | compare |
| strsim Established | 2,956,166 | 7.79x | 733 | 2.6y | category Text processing, keyword "string" | compare |
| convert_case Widely used | 1,687,092 | 4.44x | 1,213 | 58d | category Text processing, keyword "string" | compare |
| bstr Established | 1,252,630 | 3.30x | 676 | 2mo | category Text processing, keyword "string" | compare |
| compact_str Established | 712,106 | 1.88x | 575 | 3mo | category Text processing, keyword "string" | compare |
| widestring Established | 308,184 | 0.81x | 319 | 12mo | category Text processing, keyword "string" | compare |
| heck Widely used | 3,901,922 | 10.28x | 1,865 | 2.6y | keyword "string" | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with unindent; 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 unindent: 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 unindent, 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 losing ground. 810,408 real downloads a day.indocRust crate. Indented document literals. Real use: 810K downloads a day on quiet days; 1,667 crates depend on it.Read it next →Also worth your time