serde-csv-core
CSV serialization and deserialization for no_std crates.
serde-csv-core builds upon csv-core crate.
It doesn't require any memory allocations, which means that it's well-suited for embedded environments.
Serialization
Writer serializes one record at a time.
use String;
use Serialize;
let records = ;
let mut writer = new;
let mut csv = ;
let mut nwritten = 0;
for record in &records
assert_eq!;
Deserialization
Reader<N> deserializes one record at a time.
N is a capacity of an internal buffer that's used to temporarily store unescaped fields.
use ;
use Deserialize;
let csv = b"Poland,Cracow,766683\nJapan,Tokyo,13515271\n";
let mut reader = new;
let mut records: = Vecnew;
let mut nread = 0;
while nread < csv.len
assert_eq!;
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.