-
Notifications
You must be signed in to change notification settings - Fork 258
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
feat: support poem v2.0.0 #1520
Conversation
Cool, thanks a lot, Paul! I am wondering, though, if we need to take this step for Poem. From the changelog it seems like there are very few changes except for the upgrade of Hyper, so as far as I can tell the user won't need to make updates to their application, we just need to update the part that starts the server on our end in |
The version of poem ( Otherwise you get the
error reported in #1519. This appears to be the entirety of the issue. (It's also as I mentioned a breaking change since the user must update their version of poem at the same time or their app will break.) |
Re: failed CI check
The issue is the (It looks like the current version of shuttle-axum would also fail such a test. https://docs.rs/shuttle-axum/latest/src/shuttle_axum/lib.rs.html#5-8) |
Yes, but if they are already bumping the version of |
If you increase the version of If you only increase the version of |
There is also the question of if Shuttle wants to provide backwards support for poem 1 in shuttle-poem 0.37 and later. (Which is not a question I can answer.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that the changes in Poem 2 are too minor to justify having feature flag support for both versions at the same time.
A release for 0.36.1 is unlikely to happen, so I think we can simply bump poem to v2 and aim for 0.37.0 with no backwards compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A PR that does the same thing for the poem examples (onto the develop branch) would be greatly appreciated! (don't worry about the shuttle crate version numbers or failing CI due to them)
Hi hi, original feature requester here 👋 Just wanted to say that I have tested these changes and everything works as it should. As mentioned in this thread, poem 2.0.0 actually has little changes and in my case no changes needed to be made to my (small) codebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks Paul! And thanks @Mouwrice for confirming the upgrade is easy on the user side!
Description of change
Closes #1519.
Adds support for poem v2.0.0.
Approach is based on how support for Axum 0.7 was added to shuttle-axum in 0.34.1
How has this been tested? (if applicable)
Using /examples/poem/hello-world/, I did cargo check with the following changes to dependencies
Poem 1 (regression test)
Poem 2