1 unstable release

0.4.0 Jun 25, 2021

#1137 in Filesystem

Download history 47/week @ 2023-12-18 24/week @ 2023-12-25 27/week @ 2024-01-01 60/week @ 2024-01-08 59/week @ 2024-01-15 47/week @ 2024-01-22 78/week @ 2024-01-29 38/week @ 2024-02-05 53/week @ 2024-02-12 52/week @ 2024-02-19 65/week @ 2024-02-26 57/week @ 2024-03-04 60/week @ 2024-03-11 65/week @ 2024-03-18 86/week @ 2024-03-25 96/week @ 2024-04-01

314 downloads per month
Used in 4 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