use the problem_details crate for problem+json responses

This commit is contained in:
damocles 2026-06-22 14:11:05 +02:00 committed by mara
commit cdf1bfe7db
3 changed files with 49 additions and 42 deletions

24
Cargo.lock generated
View file

@ -1367,6 +1367,7 @@ dependencies = [
"hive-sh4re",
"libc",
"listenfd",
"problem_details",
"reqwest",
"rusqlite",
"serde",
@ -1508,6 +1509,16 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c"
[[package]]
name = "http-serde"
version = "2.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f056c8559e3757392c8d091e796416e4649d8e49e88b8d76df6c002f05027fd"
dependencies = [
"http",
"serde",
]
[[package]]
name = "httparse"
version = "1.10.1"
@ -2627,6 +2638,19 @@ dependencies = [
"syn",
]
[[package]]
name = "problem_details"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d50e8b46a2f32e61ae82888734e24627ea0f8c9bc7c5fc8d0c3e0eb7ed0ff5ab"
dependencies = [
"axum",
"http",
"http-serde",
"serde",
"serde_json",
]
[[package]]
name = "proc-macro-crate"
version = "3.5.0"