Update libraries to latest releases#146
Open
bltavares wants to merge 2 commits intoferristseng:masterfrom
Open
Update libraries to latest releases#146bltavares wants to merge 2 commits intoferristseng:masterfrom
bltavares wants to merge 2 commits intoferristseng:masterfrom
Conversation
The libraries on the project were outdated, and in order to integrate with recent release libraries, sych as latest `hyper` or `axum`, they needed upgrades. The major change is related to the `http 0.2 -> http 1.0` breaking change migrations, which affects the whole ecosystem as typical types such as `Uri` and `Method` are exposed to requests. Another major issue is `hyper` major release, where the `hyper::Body` became a [`Trait`]. This meant change a few type annotations and boxing values to interop with Multipart and Empty bodies under the same struct. This commit: - Upgrade all dependencies to their latest release - Adapt code on Hyper to address breaking changes - Adapt code on Actix to address newer libraries In the future, the Actix code should be revisited when a new `actix-http 5.0` gets released, as there is some pending `http 0.2 -> http 1.0` migration tidbits required for compilation. This commit also ensures all examples can compile, and were checked on a Windows and Linux box.
622985f to
a972467
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The libraries on the project were outdated, and in order to integrate with recent release libraries, sych as latest
hyperoraxum, they needed upgrades.The major change is related to the
http 0.2 -> http 1.0breaking change migrations, which affects the whole ecosystem as typical types such asUriandMethodare exposed to requests.Another major issue is
hypermajor release, where thehyper::Bodybecame a [Trait]. This meant change a few type annotations and boxing values to interop with Multipart and Empty bodies under the same struct.This commit:
In the future, the Actix code should be revisited when a new
actix-http 5.0gets released, as there is some pendinghttp 0.2 -> http 1.0migration tidbits required for compilation.This commit also ensures all examples can compile, and were checked on a Windows and Linux box.