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 {