Skip to content

Commit d24eac1

Browse files
committed
doc: make setup version independent
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
1 parent 11b02f4 commit d24eac1

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/lib.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,12 @@ position information, configuration knobs or iterator types.
4242
4343
# Setup
4444
45-
Add this to your `Cargo.toml`:
46-
47-
```toml
48-
[dependencies]
49-
csv = "1.1"
50-
```
45+
Run `cargo add csv` to add the latest version of the `csv` crate to your
46+
Cargo.toml.
5147
5248
If you want to use Serde's custom derive functionality on your custom structs,
53-
then add this to your `[dependencies]` section of `Cargo.toml`:
54-
55-
```toml
56-
[dependencies]
57-
serde = { version = "1", features = ["derive"] }
58-
```
49+
then run `cargo add serde --features derive` to add the `serde` crate with its
50+
`derive` feature enabled to your `Cargo.toml`.
5951
6052
# Example
6153

0 commit comments

Comments
 (0)