Skip to content

Commit 2ba20b5

Browse files
committed
readme: various updates
Updates badges and links and version number.
1 parent 521294f commit 2ba20b5

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ csv
22
===
33
A 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

98
Dual-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

4340
fn 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
7572
header 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)]
8578
struct Record {
8679
city: String,
8780
region: String,

0 commit comments

Comments
 (0)