utf8-read

Crates.ioutf8-read
lib.rsutf8-read
version0.4.0
sourcesrc
created_at2021-06-25 13:56:00.108561
updated_at2021-06-25 13:56:00.108561
descriptionUTF-8 reader from a stream
homepagehttps://github.com/atthecodeface/utf8-read-rs
repositoryhttps://github.com/atthecodeface/utf8-read-rs
max_upload_size
id414835
size42,426
Gavin J Stark (atthecodeface)

documentation

https://docs.rs/utf8-read

README

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.

Commit count: 3

cargo fmt