mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-11 00:00:25 +02:00
* Refactor initializing tracing-subscriber
* Revert "Refactor initializing tracing-subscriber"
This reverts commit 0876260bf9 in favor of tracing_subscriber::registry.
* Use EnvFilter::try_from_default_env in chat example
* Use EnvFilter::try_from_default_env in examples
This example explores 3 different ways you can create custom rejections for already existing extractors
with_rejection: Usesaxum_extra::extract::WithRejectionto transform one rejection into anotherderive_from_request: Usesaxum_macros::FromRequestto wrap another extractor and customize the rejectioncustom_extractor: Manual implementation ofFromRequestthat wraps another extractor
Run with
cd examples && cargo run -p example-customize-extractor-error