Skip to content

Commit f6171bc

Browse files
docs: Update installation docs to use cargo add
1 parent 913f386 commit f6171bc

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

keyvalues-parser/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ text.
1919

2020
Just add the library to your `Cargo.toml`
2121

22-
```toml
23-
[dependencies]
24-
keyvalues-parser = "0.1.0"
22+
```console
23+
$ cargo add keyvalues-parser
2524
```
2625

2726
## Quickstart

keyvalues-serde/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,19 @@ makes it easy to deal with VDF text files using strongly typed Rust structures.
1212

1313
## Installation
1414

15-
Just add the following to your `Cargo.toml`
15+
Just add the library to your `Cargo.toml`
1616

17-
```toml
18-
[dependencies]
19-
keyvalues-serde = "0.1.0"
20-
serde = { version = "1.0.0", features = ["derive"] }
17+
```console
18+
$ cargo add keyvalues-serde
2119
```
2220

2321
## Quickstart
2422

23+
```console
24+
$ cargo add keyvalues-serde
25+
$ cargo add serde --features derive
26+
```
27+
2528
```rust
2629
use serde::Deserialize;
2730

0 commit comments

Comments
 (0)