Switch serde dependency to serde_core (#3477)

This commit is contained in:
Jonas Platte
2025-09-28 19:28:32 +02:00
parent c40f739cdf
commit 16534439f5
19 changed files with 75 additions and 59 deletions
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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.
///
+1 -1
View File
@@ -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.
///