mirror of
https://github.com/openharmony/third_party_rust_encoding_rs.git
synced 2026-07-01 21:14:01 -04:00
Document the no_std support.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user