From 80549a9fb21377798d3b42ae5e0564dceeb025a6 Mon Sep 17 00:00:00 2001 From: Daniel Lee <87612696+daniel-lee-tech@users.noreply.github.com> Date: Mon, 14 Mar 2022 23:26:01 +0900 Subject: [PATCH] Update cargo.toml for json request 2nd example (#263) --- content/docs/request.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/docs/request.md b/content/docs/request.md index d78e28a..adee09c 100644 --- a/content/docs/request.md +++ b/content/docs/request.md @@ -17,12 +17,13 @@ First example of json of `JSON Request` depends on `serde`: 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 [dependencies] -serde = "1" +serde = { version = "1.0", features = ["derive"] } 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).