Skip to content
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 axum and http #123

Merged
merged 3 commits into from
Sep 11, 2024
Merged

Upgrade axum and http #123

merged 3 commits into from
Sep 11, 2024

Conversation

pbzweihander
Copy link
Contributor

@pbzweihander pbzweihander commented Jul 30, 2024

This PR upgrades http to 1.x, and upgrades corresponding crates (axum, reqwest, ...).

Resolves #87

For actix-web support, this PR converts http 1.x types to http 0.2 with naive unwraping.

@kwaa
Copy link
Contributor

kwaa commented Aug 3, 2024

LGTM, cc @Nutomic

@Nutomic
Copy link
Member

Nutomic commented Aug 20, 2024

Thanks for the PR! Im currently on summer vacation, will review it as soon as I get back to work in September.

@@ -0,0 +1,29 @@
#![allow(clippy::unwrap_used)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get rid of this and do proper error handling with ?, otherwise the code can crash at runtime. I realize that there should be no errors as all values are already validated, but yet the code should be written cleanly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or simply use .expect()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nutomic Since the author has been inactive recently, maybe merge it first and then make changes?
I believe using .expect() would be appropriate.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also just edit this PR, or branch off it directly.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(is silently in favor of editing it; I'm using this branch to currently use this project as I'm using a newer version of Axum)

@Nutomic Nutomic enabled auto-merge (squash) September 11, 2024 12:40
@Nutomic Nutomic merged commit 487c988 into LemmyNet:main Sep 11, 2024
2 checks passed
@Nutomic
Copy link
Member

Nutomic commented Sep 11, 2024

Cleaned it and merged, thanks @pbzweihander!

Also tagged a new release 0.6.0-alpha1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade hyper and http dependencies to 1.0
5 participants