1 unstable release

0.4.0 Jun 25, 2021

#1162 in Filesystem

Download history 195/week @ 2024-07-20 202/week @ 2024-07-27 91/week @ 2024-08-03 121/week @ 2024-08-10 483/week @ 2024-08-17 449/week @ 2024-08-24 107/week @ 2024-08-31 184/week @ 2024-09-07 498/week @ 2024-09-14 501/week @ 2024-09-21 301/week @ 2024-09-28 167/week @ 2024-10-05 145/week @ 2024-10-12 139/week @ 2024-10-19 185/week @ 2024-10-26 203/week @ 2024-11-02

683 downloads per month
Used in 9 crates (3 directly)

MIT/Apache

23KB
251 lines

utf8-read

A UTF8 character stream reader using a provided std::io::Read byte stream reader, that provides a stream of UTF8 characters; the underlying stream reader can be a stop-start stream such as a TCP stream, where a read() returning 0 does not indicate end-of-stream.

The UTF8 reader provides a step above std::fs::read_to_string function; for reading short UTF8 files that function is a better approach.

This crate is in beta; it is used in a small number of applications, and the functionality is mature; the API is stable, but may be enhanced.

Usage

Add this to your Cargo.toml:

[dependencies]
utf8-read = "0.5.0"

Releases

Release notes are available in RELEASES.md.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps