mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 18:52:26 +00:00
quick-xml: Remove serde-related features
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -2344,7 +2344,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "f22f29bdff3987b4d8632ef95fd6424ec7e4e0a57e2f4fc63e489e75357f6a03"
|
checksum = "f22f29bdff3987b4d8632ef95fd6424ec7e4e0a57e2f4fc63e489e75357f6a03"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"memchr",
|
"memchr",
|
||||||
"serde",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
@@ -48,11 +48,7 @@ tokio = { version = "1", features = [
|
|||||||
url = "2.5"
|
url = "2.5"
|
||||||
base64 = "0.22"
|
base64 = "0.22"
|
||||||
thiserror = "2.0"
|
thiserror = "2.0"
|
||||||
quick-xml = { version = "0.37", features = [
|
quick-xml = { version = "0.37" }
|
||||||
"serde",
|
|
||||||
"serde-types",
|
|
||||||
"serialize",
|
|
||||||
] }
|
|
||||||
rust-embed = "8.5"
|
rust-embed = "8.5"
|
||||||
futures-core = "0.3.31"
|
futures-core = "0.3.31"
|
||||||
hex = { version = "0.4.3", features = ["serde"] }
|
hex = { version = "0.4.3", features = ["serde"] }
|
||||||
|
|||||||
@@ -22,9 +22,6 @@ pub enum Error {
|
|||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
XmlDeserializationError(#[from] rustical_xml::XmlDeError),
|
XmlDeserializationError(#[from] rustical_xml::XmlDeError),
|
||||||
|
|
||||||
#[error(transparent)]
|
|
||||||
XmlSerializationError(#[from] quick_xml::SeError),
|
|
||||||
|
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
IOError(#[from] std::io::Error),
|
IOError(#[from] std::io::Error),
|
||||||
}
|
}
|
||||||
@@ -37,7 +34,6 @@ impl actix_web::error::ResponseError for Error {
|
|||||||
Self::BadRequest(_) => StatusCode::BAD_REQUEST,
|
Self::BadRequest(_) => StatusCode::BAD_REQUEST,
|
||||||
Self::Unauthorized => StatusCode::UNAUTHORIZED,
|
Self::Unauthorized => StatusCode::UNAUTHORIZED,
|
||||||
Self::XmlDeserializationError(_) => StatusCode::BAD_REQUEST,
|
Self::XmlDeserializationError(_) => StatusCode::BAD_REQUEST,
|
||||||
Self::XmlSerializationError(_) => StatusCode::BAD_REQUEST,
|
|
||||||
Error::PropReadOnly => StatusCode::CONFLICT,
|
Error::PropReadOnly => StatusCode::CONFLICT,
|
||||||
Self::IOError(_) => StatusCode::INTERNAL_SERVER_ERROR,
|
Self::IOError(_) => StatusCode::INTERNAL_SERVER_ERROR,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user