Add validator example (#352)

This commit is contained in:
LT
2021-09-28 18:12:23 +02:00
committed by GitHub
parent 0b3ee5b2ce
commit 3adc8d733d
2 changed files with 116 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
[package]
edition = "2018"
name = "example-validator"
publish = false
version = "0.1.0"
[dependencies]
async-trait = "0.1"
axum = { path = "../.." }
http-body = "0.4.3"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0.29"
tokio = { version = "1.0", features = ["full"] }
tracing = "0.1"
tracing-subscriber = "0.2"
validator = { version = "0.14.0", features = ["derive"] }