From e698e35704fa1a1759aaf6b1964f39f19b32af48 Mon Sep 17 00:00:00 2001 From: Daniel Cormier Date: Mon, 8 Dec 2025 12:14:14 -0500 Subject: [PATCH] Updated `lambda_http` dependency --- Cargo.toml | 2 +- src/lib.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2e6839f..4573b3c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ keywords = ["axum", "lambda", "tower", "aws"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -lambda_http = "0.14" +lambda_http = "1" axum = "0.8" hyper = "1.0" bytes = "1.5" diff --git a/src/lib.rs b/src/lib.rs index c8b47cc..a5666eb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -60,6 +60,8 @@ where lambda_http::Body::Empty => axum::body::Body::default(), lambda_http::Body::Text(t) => t.into(), lambda_http::Body::Binary(v) => v.into(), + // lambda_http::Body is non-exhaustive, so a catch-all is needed + _ => unimplemented!("unsupported body type"), }; if self.layer.trim_stage {