hanabu / lambda-web

Run Rust web frameworks on AWS Lambda
MIT License
115 stars 38 forks source link

Replace Infallible to LambdaError on hyper #13

Open namse opened 1 year ago

namse commented 1 year ago

Related issue: #12

I replaced Infallible to LambdaError for supporting error handling on hyper.

hanabu commented 1 year ago

Thank you for your contribution.

But, with your change, axum or warp web frameworks can not compile with this. Both frameworks assume Service with Error=Infallible e.g., [axum::Router](https://docs.rs/axum/0.6.1/axum/struct.Router.html#impl-Service%3CRequest%3CB%3E%3E-for-Router%3C()%2C%20B%3E),