mirror of
https://github.com/actix/actix-website
synced 2024-11-27 18:12:57 +01:00
Update cargo.toml for json request 2nd example (#263)
This commit is contained in:
parent
17fc2533e5
commit
80549a9fb2
@ -17,12 +17,13 @@ First example of json of `JSON Request` depends on `serde`:
|
|||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
```
|
```
|
||||||
|
|
||||||
Second example of `JSON Request` depends on `serde` and `serde_json`:
|
Second example of `JSON Request` depends on `serde` and `serde_json` and `futures`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "1"
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
|
futures = "0.3"
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to add default value for a field, refer to `serde`'s [documentation](https://serde.rs/attr-default.html).
|
If you want to add default value for a field, refer to `serde`'s [documentation](https://serde.rs/attr-default.html).
|
||||||
|
Loading…
Reference in New Issue
Block a user