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

Reexport the reqwest. #715

Closed
wants to merge 1 commit into from

Conversation

MathieuDutSik
Copy link

The reqwest library is used by the alloy library. This means that the related types leak into other codes.

Motivation

The type leakage is a problem in the rest of the code. For example we can have

RootProvider<alloy::transports::http::Http<Client>>

This can be done via adding a reqwest in the Cargo.toml file but it has to match the version used in alloy and that is an unfortunate dependency.

Solution

Replace use reqwest as _ by pub use reqwest.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@prestwich
Copy link
Member

Closing in favor of #716, which re-exports reqwest and hyper from the relevant crate

@prestwich prestwich closed this May 9, 2024
@MathieuDutSik
Copy link
Author

Thank you, the chosen solution is satisfying to me.

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.

2 participants