-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to axum ^0.7 #227
Comments
Hi @lebenitza , |
I taking a quick look at what it would take to do this, and it seems that upgrading to http ^1.0 is unavoidable. Is that what you would expect, @Lazzaretti ? |
I think you are right, the http crate has to be updated. If this is the case, I'm fine with an upgrade. |
Sounds good. I have some travel scheduled, but I can take this up in a few weeks if no one else has by then. |
@Lazzaretti when do you plan a new release ? |
I've been working on this on and off, but got stuck on implementing the axum(-core) FromRequest trait for Event. It complains (see below) about a conflict resulting from a generic implementation of FromRequest for types that implement FromRequestParts, but that FromRequestParts is not implemented for Event. I'll keep trying to figure it out, but any suggestions would be appreciated.
|
@ozabalaferrera Could this be the same issue as the one described in this SO response? https://stackoverflow.com/a/77816211 Linking the references shared in the response directly: |
@nicmr, that was it, thanks! |
@Lazzaretti, I've not evaluated what is needed to update web (server) frameworks other than axum. The changes I've prepared use feature gates to control dependency versions and function signatures, such that only the axum feature is affected/updated. However, that breaks some feature combinations (see below). As a result, the test jobs would have to change to remove the use of axum and (nats or rdkafka) are okay, these are not:
I figured I'd ask before putting up the PR, but I'm happy to put up a draft if you'd like to take a look. |
I don't have a strict timeline. But I think we soon need a new release :) |
@jcrossley3 any suggestion from your side? @ozabalaferrera If you want to ping me on Slack and we can discuss this a bit in detail: https://cloud-native.slack.com/team/UTV7ZGPAR |
My inclination is to keep |
@jcrossley3, understood. I already started working on another branch with broad dependency updates. warp might be troublesome because it is not on hyper and http versions 1. We'll see how it goes 😄 @Lazzaretti, I'll reach out on slack if I have any other questions. |
This should resolved by PR #233 and good to go in version 0.8.0 when it's released. |
Hi @ozabalaferrera, sorry to bug you, but we use the |
@FalkWoldmann, I'll take a look at the rdkafka dependency and see if I am able to upgrade it. To be clear, I am not a maintainer and I cannot "release" a new version. If I figure it out I will open a PR though. |
What are the blockers on a new release? I've been tracking main with axum 0.7/.8 and it's working well. I'm happy to help out if there's something I can do to get this released. |
I'm just back from PTO, sorry for the late reply. I'm open to getting a release out this week. |
Are there any plans to migrate to axum v0.7.x ?
https://github.com/tokio-rs/axum/releases/tag/axum-v0.7.0
This comes with other dependencies that need to be upgraded too, mentioned in the 0.7.0 release. I tried figuring this out but I am stuck at
The text was updated successfully, but these errors were encountered: