Unverified Commit c3e6ed96 authored by david-perez's avatar david-perez Committed by GitHub
Browse files

Document compatibility of `aws-smithy-http-server` with `lambda_http` (#2683)

See #2676.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 2b165037
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,10 @@ type HyperRequest = http::Request<hyper::Body>;
/// A [`Service`] that takes a `lambda_http::Request` and converts
/// it to `http::Request<hyper::Body>`.
///
/// **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<S> {