Skip to content

Update libraries to latest releases#146

Open
bltavares wants to merge 2 commits intoferristseng:masterfrom
bltavares:update-libraries
Open

Update libraries to latest releases#146
bltavares wants to merge 2 commits intoferristseng:masterfrom
bltavares:update-libraries

Conversation

@bltavares
Copy link

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.

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.
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.

1 participant