Crates.io | utf8-read |
lib.rs | utf8-read |
version | 0.4.0 |
source | src |
created_at | 2021-06-25 13:56:00.108561 |
updated_at | 2021-06-25 13:56:00.108561 |
description | UTF-8 reader from a stream |
homepage | https://github.com/atthecodeface/utf8-read-rs |
repository | https://github.com/atthecodeface/utf8-read-rs |
max_upload_size | |
id | 414835 |
size | 42,426 |
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.
Add this to your Cargo.toml
:
[dependencies]
utf8-read = "0.5.0"
Release notes are available in RELEASES.md.
Licensed under either of
at your option.
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.