rust-csv
rust-csv copied to clipboard
A CSV parser for Rust, with Serde support.
This pull request fixes an issue in the CSV parser where comment lines at the end of a file were not properly ignored. According to expected behavior, if the last...
Given `reader: csv::Reader`, when `reader.read_record` returns, `reader.position().line()` should return the line number where the next record begins. When the input has a single-byte record separator like `\n`, that's exactly what...
Deserialising into a nested optional structure causes the inner structure to be set to None even when the csv row has data. given the following structures: ```rust #[derive(Debug, serde::Deserialize, Clone)]...
Resolves #385
A field that returns a serde deserialize error will always have the `field` set to `None`. ```rust impl SerdeError for DeserializeError { fn custom(msg: T) -> DeserializeError { DeserializeError {...
I've just encountered the same problem as was described in #353. I was wondering about a different solution: Given a header with duplicate fields: ``` name,other,name' ``` I wonder if...