talira

csv (Rust)

Fast, flexible CSV reader and writer for Rust, with Serde support

open sourceUnlicense OR MITfree

csv is a fast and flexible CSV reader and writer for Rust by Andrew Gallant (BurntSushi). It iterates over records and can deserialize rows straight into your own structs with Serde, matching struct fields to the header row, and serializes them back to CSV. Its documentation includes a tutorial and a cookbook of examples. The csv-core crate in the same repository is a CSV reader and writer for no_std code that never uses the standard library.

Problems it solves

  • read a CSV file into Rust structs
  • write CSV output from a Rust program
  • parse CSV from stdin in Rust

Features

  • CSV reader and writer
  • deserialize rows into structs with Serde, matched by header
  • serialize structs to CSV
  • tutorial and cookbook in the docs
  • csv-core crate for no_std code