From 40cc84774a287c962395e65c931285a66d83f30f Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 29 Mar 2024 23:20:03 +0100 Subject: [PATCH] deps: add problemdetails --- Cargo.lock | 16 ++++++++++++++++ Cargo.toml | 1 + 2 files changed, 17 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 2bb9c9c..44f8479 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1118,6 +1118,7 @@ dependencies = [ "fake", "jsonwebtoken", "once_cell", + "problemdetails", "quickcheck", "quickcheck_macros", "rand", @@ -1561,6 +1562,19 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +[[package]] +name = "problemdetails" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12a1742b691ab83cfe43b9bab1801c18b5ebac686471d01577a587843d3d421b" +dependencies = [ + "axum", + "http", + "serde", + "serde_json", + "tower-http", +] + [[package]] name = "proc-macro2" version = "1.0.79" @@ -1939,6 +1953,7 @@ version = "1.0.114" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0" dependencies = [ + "indexmap 2.2.5", "itoa", "ryu", "serde", @@ -2625,6 +2640,7 @@ checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" dependencies = [ "bitflags 2.5.0", "bytes", + "futures-util", "http", "http-body", "http-body-util", diff --git a/Cargo.toml b/Cargo.toml index 1bddb75..03b7d35 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,7 @@ tokio = { version = "1", features = ["full"] } axum = { version = "0.7.4", features = ["tracing"] } tower = { version = "0.4.13" } tower-http = { version = "0.5", features = ["trace", "request-id", "util"] } +problemdetails = { version = "0.4.1", features = ["axum"] } # db sqlx = { version = "0.7.4", features = [