22===
33A fast and flexible CSV reader and writer for Rust, with support for Serde.
44
5- [ ![ Linux build status] ( https://api.travis-ci.org/BurntSushi/rust-csv.svg )] ( https://travis-ci.org/BurntSushi/rust-csv )
6- [ ![ Windows build status] ( https://ci.appveyor.com/api/projects/status/github/BurntSushi/rust-csv?svg=true )] ( https://ci.appveyor.com/project/BurntSushi/rust-csv )
7- [ ![ ] ( http://meritbadge.herokuapp.com/csv )] ( https://crates.io/crates/csv )
5+ [ ![ Build status] ( https://github.com/BurntSushi/csv/workflows/ci/badge.svg )] ( https://github.com/BurntSushi/csv/actions )
6+ [ ![ crates.io] ( https://img.shields.io/crates/v/csv.svg )] ( https://crates.io/crates/csv )
87
98Dual-licensed under MIT or the [ UNLICENSE] ( http://unlicense.org ) .
109
@@ -24,7 +23,7 @@ Add this to your `Cargo.toml`:
2423
2524``` toml
2625[dependencies ]
27- csv = " 1.1 "
26+ csv = " 1.2 "
2827```
2928
3029### Example
@@ -36,9 +35,7 @@ There are more examples in the
3635[ cookbook] ( https://docs.rs/csv/1.0.0/csv/cookbook/index.html ) .
3736
3837``` rust
39- use std :: error :: Error ;
40- use std :: io;
41- use std :: process;
38+ use std :: {error :: Error , io, process};
4239
4340fn example () -> Result <(), Box <dyn Error >> {
4441 // Build the CSV reader and iterate over each record.
@@ -75,13 +72,9 @@ By default, the member names of the struct are matched with the values in the
7572header record of your CSV data.
7673
7774``` rust
78- use std :: error :: Error ;
79- use std :: io;
80- use std :: process;
75+ use std :: {error :: Error , io, process};
8176
82- use serde :: Deserialize ;
83-
84- #[derive(Debug , Deserialize )]
77+ #[derive(Debug , serde:: Deserialize )]
8578struct Record {
8679 city : String ,
8780 region : String ,
0 commit comments