Closed nicomem closed 3 years ago
Though I understand the demand for a lighter http client, I would prefer to have this implemented as an alternative, not as a replacement. If the library is used in context where reqwest is used anyway, which is not unlikely, since it is the most widely used http client crate, switching to another client would indeed increase the dependency burden instead of reducing it. In addition, features like compilation to WASM targets does not seem to be supported by ureq (or at least that would have to be checked first). Therefore, I am a bit reluctant to accept this PR as it is.
(Based on the branch at #11, this should not be merged before the base branch)
This PR makes those changes:
reqwest
blocking client withureq
, which is a lot lighter (~100 crates less)async
feature, for users to be able to remove the async deps when using the blocking clientasync
feature is added in the default features, so that it isn't a breaking changeYahooConnector
as either:blocking
feature is not presentasync
feature is present