Skip to content

Commit

Permalink
doc: make setup version independent
Browse files Browse the repository at this point in the history
I'm not fiddling with this every time I do a release, and it is annoying
for PRs getting filed to do this after every release. Moreover, the
instructions with an old version are still correct, and you'll still get
the latest version of `csv` in a fresh project.

Closes #306
  • Loading branch information
BurntSushi committed Mar 13, 2023
1 parent 11b02f4 commit d24eac1
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,12 @@ position information, configuration knobs or iterator types.
# Setup
Add this to your `Cargo.toml`:
```toml
[dependencies]
csv = "1.1"
```
Run `cargo add csv` to add the latest version of the `csv` crate to your
Cargo.toml.
If you want to use Serde's custom derive functionality on your custom structs,
then add this to your `[dependencies]` section of `Cargo.toml`:
```toml
[dependencies]
serde = { version = "1", features = ["derive"] }
```
then run `cargo add serde --features derive` to add the `serde` crate with its
`derive` feature enabled to your `Cargo.toml`.
# Example
Expand Down

0 comments on commit d24eac1

Please sign in to comment.