Email me

Crates / indoc / Alternatives

Rust crate alternatives · data Oct 24, 2026

Alternatives to indoc

Short answerThe closest alternatives to indoc on crates.io data are unindent (380K 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 aho-corasick, and 4 shipped a release in the last year. indoc itself gets 810,408 a day with 1,667 dependents.

Every alternative we found

AlternativeReal downloads a dayvs indocDependentsLast releaseWhy it is listed
unindent Established379,6040.47x10020mocategory Text processing, keyword "heredoc", keyword "literal"compare
aho-corasick Established3,331,0474.11x6553mocategory Text processing, keyword "string"compare
strsim Established2,956,1663.65x7332.6ycategory Text processing, keyword "string"compare
convert_case Widely used1,687,0922.08x1,21358dcategory Text processing, keyword "string"compare
bstr Established1,252,6301.55x6762mocategory Text processing, keyword "string"compare
compact_str Established712,1060.88x5753mocategory Text processing, keyword "string"compare
widestring Established308,1840.38x31912mocategory No standard library, category Text processing, keyword "string"compare
maplit Established266,9280.33x8197.2ycategory Rust patterns, keyword "literal"compare

How to choose

  • Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with indoc; 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 indoc: 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 indoc, 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 losing ground. 379,604 real downloads a day.unindentRust crate. Remove a column of leading whitespace from a string. Real use: 380K downloads a day on quiet days; 100 crates depend on it.Read it next →

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Did this answer your question?

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ