StractOrg / stract

web search done right
https://stract.com
GNU Affero General Public License v3.0
2.13k stars 48 forks source link

Update axum to 0.7 #117

Closed oeb25 closed 9 months ago

oeb25 commented 9 months ago

This follows the recent release of axum 0.7: https://tokio.rs/blog/2023-11-27-announcing-axum-0-7-0

There are only a few small API changes, which generally just removes some generics.

Also, the API for serving endpoints has changed to use axum::serve. In these calls I think the .into_make_service() call, which was previously needed, can now be removed, but I'm not quite sure if it has some semantic difference (for example, some use into_make_service_with_connect_info, and we probably want to keep that).

Along with updating axum, we also updated tower-http and a few other related crates.