v0.7.x Breaks AWS HTTP Lambda Example #2372
Unanswered
davidachris
asked this question in
Q&A
Replies: 1 comment 2 replies
-
0.6 to 0.7 is a major version bump so it should not come as a surprise that things no longer compile. axum 0.7 now requires the request body type to be |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
Version
v0.7.x
Platform
Crates
Description
In summary, the AWS Lambda example we could previously use Axum up to v6.x. After upgrading to v7.x, I get errors because of possibly an incompatibility. I was able to track it down to a removal of generics in the Router Struct. Please see below in breaking changes. Appologies if this is an intended change; however, I could not find information in the documentation in a different way to setup a Router so that it may be compatible with the AWS example, if its simply no longer possible to use in Lambda thats fine as well, I wanted to at least bring it to your attention. Thanks!
If you upgrade this example to v.7.x then this is no longer possible
https://github.com/awslabs/aws-lambda-rust-runtime/tree/main/examples/http-axum
v0.7.x:
v0.6.x:
v0.7.x :
Beta Was this translation helpful? Give feedback.
All reactions