mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
Switch serde dependency to serde_core (#3477)
This commit is contained in:
@@ -5,7 +5,7 @@ use axum::{
|
||||
};
|
||||
use axum_core::__composite_rejection as composite_rejection;
|
||||
use axum_core::__define_rejection as define_rejection;
|
||||
use serde::de::DeserializeOwned;
|
||||
use serde_core::de::DeserializeOwned;
|
||||
|
||||
/// Extractor that deserializes `application/x-www-form-urlencoded` requests
|
||||
/// into some type.
|
||||
|
||||
@@ -4,7 +4,7 @@ use axum_core::__define_rejection as define_rejection;
|
||||
use axum_core::extract::rejection::BytesRejection;
|
||||
use bytes::Bytes;
|
||||
use http::{header, HeaderMap};
|
||||
use serde::Deserialize;
|
||||
use serde_core::Deserialize;
|
||||
use std::marker::PhantomData;
|
||||
|
||||
/// JSON Extractor for zero-copy deserialization.
|
||||
|
||||
@@ -2,7 +2,7 @@ use axum::{
|
||||
extract::{rejection::PathRejection, FromRequestParts, Path},
|
||||
RequestPartsExt,
|
||||
};
|
||||
use serde::de::DeserializeOwned;
|
||||
use serde_core::de::DeserializeOwned;
|
||||
|
||||
/// Extractor that extracts path arguments the same way as [`Path`], except if there aren't any.
|
||||
///
|
||||
|
||||
@@ -2,7 +2,7 @@ use axum::extract::FromRequestParts;
|
||||
use axum_core::__composite_rejection as composite_rejection;
|
||||
use axum_core::__define_rejection as define_rejection;
|
||||
use http::{request::Parts, Uri};
|
||||
use serde::de::DeserializeOwned;
|
||||
use serde_core::de::DeserializeOwned;
|
||||
|
||||
/// Extractor that deserializes query strings into some type.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user