-
Notifications
You must be signed in to change notification settings - Fork 486
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
[Feature Request]: Use reqwest
instead of isahc
#3091
Comments
surf
instead of isahc
I see Windows isn't supported but I'll leave this issue in case it is useful for something else |
Improving the build experience on windows is always nice and in general openssl as a dep can be annoying to get correctly configured in various build environments. So we'd definitely take a look at any contributions in that area. I think you're talking about isahc in fluvio-cli-common? It would be nice to switch it over to surf with the hyper_client feature on, which IIRC uses rustls by default. From fluvio-hub-util, we're getting a warning with surf in default config with nom, so there could be a similar change there too. |
|
|
As an experiment, if you create a standalone crate with a surf dep configured to hyper-client, no openssl is pulled in. |
It pulls it in for me, it looks like |
Thanks for checking that, I re-checked on macos it is not used in that config, but w/ linux it is. Macos must use a different native tls lib. It's possible to use reqwest w/ rustls (which I can confirm doesn't pull in openssh), but it can get tricky in mixing it into dependencies in various crates and workspace in the total fluvio ecosystem. You are welcome to give it a try and we can try to review and work through the issues, but it is looking like this change will take a little more time than a simple dep reconfig. |
I checked |
fluvio-hub-util dep w/ surf/async-h1 is what is giving a nom future deprecated feature warning. The async-h1 dep unfortunately also seems not very maintained. So we have two problems to potentially solve:
In some other portions of the internal codebase we've been mixing in some uses of rewqest/hyper-rustls, but its on a few selected cli only binaries. It might be work try and see a few more places for reqwest to see if it can be used, or at least identify the pain points. |
surf
instead of isahc
reqwest
instead of isahc
Stale issue message |
Stale issue message |
doing other work on this instead see #3585 |
Hey!
Currently windows build is a little cumbersome because the project depends on OpenSSL which seems to be because it uses isahc.
It could depend on
surf
with therustls
option to remove OpenSSL dependency. This would improve build experience in case the user doesn't have OpenSSL on their system already.I can do this if it makes sense
The text was updated successfully, but these errors were encountered: