3 ms·
It's buried in the docs of csv-core[1], mostly because it's rarely useful in my experience. But it's a good question, so it probably should be featured more pro
by burntsushi 9y ago
It's buried in the docs of csv-core[1], mostly because it's rarely useful in my experience. But it's a good question, so it probably should be featured more prominently. The implementation follows in the footsteps of Python's CSV parser, where it prefers a parse over returning an error. I'd like to add a strict mode[2], but I haven't perceived much demand for it.
For writing and RFC 4180 compliance, see: https://docs.rs/csv-core/0.1.2/csv_core/struct.Writer.html#rfc-4180 https://docs.rs/csv-core/0.1.2/csv_core/struct.Writer.html#r... (The higher level `csv::Writer` will, by default, return an error when writing flexible records. Of course, that can be disabled.)
[1] - https://docs.rs/csv-core/0.1.2/csv_core/struct.Reader.html#rfc-4180 https://docs.rs/csv-core/0.1.2/csv_core/struct.Reader.html#r...
[2] - https://github.com/BurntSushi/rust-csv/issues/77 https://github.com/BurntSushi/rust-csv/issues/77