Crate features / encoding_rs
Feature flags · encoding_rs 0.8.42 · from crates.io 2026-10-24
encoding_rs features: what each one does, and the line to copy
Short answerencoding_rs 0.8.42 has 12 features. By default it turns on alloc; add default-features = false to start from nothing. It needs Rust 1.88 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
alloc | yes | nothing else (a switch the code checks) |
fast-big5-hanzi-encode | nothing else (a switch the code checks) | |
fast-gb-hanzi-encode | nothing else (a switch the code checks) | |
fast-hangul-encode | nothing else (a switch the code checks) | |
fast-hanja-encode | nothing else (a switch the code checks) | |
fast-kanji-encode | nothing else (a switch the code checks) | |
fast-legacy-encode | fast-hangul-encode, fast-hanja-encode, fast-kanji-encode, fast-gb-hanzi-encode, fast-big5-hanzi-encode | |
less-slow-big5-hanzi-encode | nothing else (a switch the code checks) | |
less-slow-gb-hanzi-encode | nothing else (a switch the code checks) | |
less-slow-kanji-encode | nothing else (a switch the code checks) | |
simd-accel | any_all_workaround, rustversion | |
std | dep:multiversion |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version encoding_rs declares (rust-version), and the release that changed it:
- 0.8.34 (2024-04-10): Rust 1.36
- 0.8.40 (2026-09-07): Rust 1.88
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p encoding_rs --precise <version>, or use resolver 3, which picks compatible versions for you.
More on encoding_rs
docs.rs feature list · crates.io · license (Apache-2.0 OR MIT) AND BSD-3-Clause · edition 2024
Up next
Next crateFeature flags for every popular crateRead it next →Also worth your time
Did this answer your question?