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

refactor: Switch from reqwest to ureq #296

Merged

Conversation

CosmicHorrorDev
Copy link
Collaborator

This switches our http client library that we use to fetch images from reqwest to ureq. There are some API differences between the two libraries, so things can't be handled quite the same way (primarily ureq doesn't have something akin to a Client), and there are differences in how http responses are handled, but that shouldn't have any practical impact on us unless servers are returning valid images with http error codes

This drops all the tokio related stuff from our (non-dev) dependency tree (20 less dependencies, and release lto builds are over a MiB smaller)

@CosmicHorrorDev CosmicHorrorDev added the C-refactor Category: Reworking an existing feature label Apr 4, 2024
@CosmicHorrorDev CosmicHorrorDev merged commit 0fa5ef6 into Inlyne-Project:main Apr 4, 2024
9 checks passed
@CosmicHorrorDev CosmicHorrorDev deleted the reqwest-to-ureq branch April 6, 2024 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-refactor Category: Reworking an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant