examples: Created new error-handling example

This commit is contained in:
Altair-Bueno
2022-08-18 19:07:01 +02:00
parent 568394a28e
commit 41efab567c
3 changed files with 75 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
[package]
name = "error-handling"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
axum = { path = "../../axum" }
axum-extra = { path = "../../axum-extra" }
chrono = { version = "0.4", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
tokio = { version = "1.20", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }