1
0
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:
Daniel Lee 2022-03-14 23:26:01 +09:00 committed by GitHub
parent 17fc2533e5
commit 80549a9fb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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).