vercel-community / rust

🦀 Rust runtime for ▲ Vercel Serverless Functions
https://rust-runtime.vercel.app
MIT License
816 stars 50 forks source link

fix: hide requestExt #120

Closed Zxilly closed 10 months ago

Zxilly commented 10 months ago

The request instance service_fn received is created by vercel runtime and has nothing in its extensions field. RequestExt will not work as expected.

ecklf commented 10 months ago

Currently we export this trait so we can access the payload on the request type. I think we could change this to just use RequestPayloadExt?

Zxilly commented 10 months ago

RequestPayloadExt didn't exist in lambda_http 0.7, we need to bump to a newer version.