mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-17 00:00:16 +02:00
Add example showing up to customize extractor error (#356)
Lots have been asking about this so makes sense to have an example for. Once this is merged I'll add a link to it in the docs.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
[package]
|
||||
name = "example-customize-extractor-error"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
axum = { path = "../.." }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.2"
|
||||
Reference in New Issue
Block a user