Switch serde dependency to serde_core (#3477)

This commit is contained in:
Jonas Platte
2025-09-14 08:49:07 +02:00
committed by GitHub
parent 94af9c3262
commit 4ab8df5e42
19 changed files with 74 additions and 59 deletions
+4 -4
View File
@@ -10,7 +10,7 @@ use bytes::{BufMut, BytesMut};
use futures_core::{stream::BoxStream, Stream, TryStream};
use futures_util::stream::TryStreamExt;
use pin_project_lite::pin_project;
use serde::{de::DeserializeOwned, Serialize};
use serde_core::{de::DeserializeOwned, Serialize};
use std::{
convert::Infallible,
io::{self, Write},
@@ -174,7 +174,7 @@ where
#[cfg(test)]
mod tests {
use super::*;
use super::JsonLines;
use crate::test_helpers::*;
use axum::{
routing::{get, post},
@@ -182,8 +182,8 @@ mod tests {
};
use futures_util::StreamExt;
use http::StatusCode;
use serde::Deserialize;
use std::error::Error;
use serde::{Deserialize, Serialize};
use std::{convert::Infallible, error::Error};
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug)]
struct User {