#parser #serialization #csv-parser #csv #tabular

facet-csv

CSV serialization for facet using the new format architecture

47 releases (13 breaking)

Uses new Rust 2024

new 0.46.1 May 6, 2026
0.44.7 Apr 14, 2026
0.44.5 Mar 16, 2026
0.41.0 Dec 31, 2025
0.28.0 Jul 25, 2025

#16 in #tabular

MIT/Apache

510KB
9K SLoC

facet-csv

CSV parser and serializer using facet-format.

Note: CSV is a fundamentally different format from JSON/XML/YAML. While those formats are tree-structured and map naturally to nested types, CSV is a flat, row-based format where each row represents a single record and each column represents a field.

This crate provides basic CSV support via the FormatParser trait, but has significant limitations:

  • No support for nested structures (CSV is inherently flat)
  • No support for arrays/sequences as field values
  • No support for enums beyond unit variants (encoded as strings)
  • All values are strings and must be parseable to target types

For more sophisticated CSV handling, consider a dedicated CSV library.

Dependencies

~5MB
~87K SLoC