Crates / encoding_rs / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to encoding_rs
Short answerThe closest alternatives to encoding_rs on crates.io data are utf8_iter (2.1M real downloads a day), utf16_iter (349K real downloads a day), unicode-width (2.2M real downloads a day). Of the 8 we list, the most used is toml_datetime, and 3 shipped a release in the last year. encoding_rs itself gets 1,414,714 a day with 1,424 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs encoding_rs | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| utf8_iter Pulled in | 2,136,300 | 1.51x | 12 | 2.9y | category Encoding, category Internationalization (i18n), keyword "encoding", keyword "unicode" | compare |
| utf16_iter Pulled in | 349,411 | 0.25x | 3 | 2.9y | category Encoding, category Internationalization (i18n), keyword "encoding", keyword "unicode" | compare |
| unicode-width Widely used | 2,194,046 | 1.55x | 3,230 | 13mo | category Internationalization (i18n), category Text processing, keyword "unicode" | compare |
| unicode-bidi Established | 1,058,529 | 0.75x | 190 | 22mo | category Encoding, category Text processing, keyword "unicode" | compare |
| write16 Pulled in | 352,874 | 0.25x | 6 | 4.3y | category Internationalization (i18n), category Text processing, keyword "unicode" | compare |
| toml_datetime Pulled in | 3,215,444 | 2.27x | 29 | 16d | category Encoding, keyword "encoding" | compare |
| toml Foundational | 2,960,881 | 2.09x | 20,777 | 15d | category Encoding, keyword "encoding" | compare |
| toml_edit Widely used | 2,715,071 | 1.92x | 1,989 | 15d | category Encoding, keyword "encoding" | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with encoding_rs; 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 encoding_rs: 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 encoding_rs, 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: Few direct dependents and quiet for years. 2,136,300 real downloads a day.utf8_iterRust crate. Iterator by char over potentially-invalid UTF-8 in &[u8]. Real use: 2.1M downloads a day on quiet days; 12 crates depend on it.Read it next →Also worth your time