Document the no_std support.

This commit is contained in:
Henri Sivonen
2021-02-04 13:11:36 +02:00
parent 2131cee370
commit f7c36cb2c1
+12
View File
@@ -75,6 +75,14 @@ a `std::io::Read`, decode it into UTF-8 and presenting the result via
`std::io::Read`. The [`encoding_rs_io`](https://crates.io/crates/encoding_rs_io)
crate provides that capability.
## `no_std` Environment
The crate works in a `no_std` environment assuming that `alloc` is present.
The `alloc`-using part are on the outer edge of the crate, so if there is
interest in using the crate in environments without `alloc` it would be
feasible to add a way to turn off those parts of the API of this crate that
use `Vec`/`String`/`Cow`.
## Decoding Email
For decoding character encodings that occur in email, use the
@@ -421,6 +429,10 @@ To regenerate the generated code:
## Release Notes
### 0.8.27
* Make the crate works in a `no_std` environment (with `alloc`).
### 0.8.26
* Fix oversights in edition 2018 migration that broke the `simd-accel` feature.