diff --git a/examples/pokemon-service-lambda/Cargo.toml b/examples/pokemon-service-lambda/Cargo.toml index 96a2d18230..72c1d4cd01 100644 --- a/examples/pokemon-service-lambda/Cargo.toml +++ b/examples/pokemon-service-lambda/Cargo.toml @@ -13,6 +13,9 @@ hyper = {version = "0.14.25", features = ["server"] } tokio = "1.26.0" tracing = "0.1" +# `aws-smithy-http-server` is only guaranteed to be compatible with this +# version of `lambda_http`, or semver-compatible versions of this version. +# Depending on other versions of `lambda_http` may not work. lambda_http = "0.7.3" # Local paths diff --git a/rust-runtime/aws-smithy-http-server/src/routing/lambda_handler.rs b/rust-runtime/aws-smithy-http-server/src/routing/lambda_handler.rs index b338062782..6e3348187c 100644 --- a/rust-runtime/aws-smithy-http-server/src/routing/lambda_handler.rs +++ b/rust-runtime/aws-smithy-http-server/src/routing/lambda_handler.rs @@ -16,6 +16,10 @@ type HyperRequest = http::Request; /// A [`Service`] that takes a `lambda_http::Request` and converts /// it to `http::Request`. /// +/// **This version is only guaranteed to be compatible with +/// [`lambda_http`](https://docs.rs/lambda_http) ^0.7.0.** Please ensure that your service crate's +/// `Cargo.toml` depends on a compatible version. +/// /// [`Service`]: tower::Service #[derive(Debug, Clone)] pub struct LambdaHandler {