Skip to content

bump reqwest and disable http/2 support#46

Merged
oll3 merged 4 commits intomainfrom
chore/bump-reqwest
Apr 23, 2024
Merged

bump reqwest and disable http/2 support#46
oll3 merged 4 commits intomainfrom
chore/bump-reqwest

Conversation

@oll3
Copy link
Owner

@oll3 oll3 commented Apr 17, 2024

PR bumps reqwest to 0.12, and with that hyper to 1.x.

PR also disables support for http/2. This since to my understanding http/2 does not provide any features needed for bita/bitar to fully function but adds a lot to the binary size.
bita compiled (x86-64, in release mode+stripped) with http/2 support enabled adds ~900 KiB to the binary compared to a version without http/2 support.

oll3 added 4 commits April 17, 2024 21:10
Mainly includes a bump hyper to 1.x.
Since reqwest 0.12 http/2 support can be disabled to decrease binary size.
And since range-requests and persistent connections are supported in http/1.1 it seems unnecessary for our use case to build with http/2 support.

bita compiled (x86-64, in release mode+stripped) with http/2 support enabled adds ~900 KiB to the binary compared to a version without http/2 support.
@oll3 oll3 merged commit 46c4493 into main Apr 23, 2024
@oll3 oll3 deleted the chore/bump-reqwest branch January 7, 2025 19:56
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