csvstream

Crates.iocsvstream
lib.rscsvstream
version0.2.0
sourcesrc
created_at2023-02-11 15:11:41.180113
updated_at2023-02-12 14:21:15.794297
descriptionSerialize and deserialize CSV streams
homepage
repositoryhttps://gitlab.com/wake-sleeper/csvstreams
max_upload_size
id782570
size28,909
Eze Anyanwu (eze-works)

documentation

README

CsvStream

Deserialize CSVs, one record at a time.

Usage

use csvstream::{ByteRecord, read_csv};

let mut csv = &b"1,2\n3,4"[..];
let records = read_csv(&mut csv).collect::<Vec<ByteRecord>>();
assert_eq!(records.len(), 2);
assert_eq!(&records[0][0], b"1");
assert_eq!(&records[0][1], b"2");
assert_eq!(&records[1][0], b"3");
assert_eq!(&records[1][1], b"4");

See the docs for more info.

Commit count: 18

cargo fmt