1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00
examples/json_decode_error/Cargo.toml
Stig Johan Berggren 8f3ce39d05
New example: Return JSON decode errors to a client (#268)
* Add JSON decode error example

* cargo fmt

* Use more appropriate response codes

* curl -i similar for all examples

* Add one more example of 422 response

* use to_string instead of empty format!
2020-03-16 03:21:13 +09:00

13 lines
296 B
TOML

[package]
name = "json_decode_error"
version = "0.1.0"
authors = ["Stig Johan Berggren <stigjb@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-web = "2.0.0"
actix-rt = "1.0.0"
serde = "1.0.104"