-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Add rustls features #100
Add rustls features #100
Conversation
Thanks for the PR. However a similar one #92 was rejected recently to not further complicate the feature flags in this crate. To get rid of the openssl dependency it is possible to specify your own HttpClient using |
Well, it's very unclear and more code to write. Because you need to specify another 2 libraries like |
my main objection to #92 was the feature flag complexity that it introduced (since it had to work with both reqwest 0.9 and 0.10). however, I think we have an opportunity to revisit this now that we've moved on to a new major release (4.x), which is a good time to simplify things by removing legacy support (as @mettke alluded to in #99). for 4.x, it seems reasonable to remove support for both futures 0.1 and reqwest 0.9 and leave only (optional) futures 0.3 and reqwest 0.10 support. as part of this change, how about we change the reqwest 0.10 import to unconditionally use
so, at a minimum, we probably want to change the default to |
So I can close this PR and you will add it in new v4, right? |
I'm open to PRs that implement the changes I suggested, but I can't guarantee when I'll have the time to make these changes myself. |
Better to add features to turn on rustls in
reqwest
.Library
native-tls
is dynamically linked and it's hard sometimes to set up the environment for it. I added features that enable rustls in reqwest but by defaultreqwest
usesnative-tls
in featuredefault-tls
and needs to be disabled to make work rustls.So to use rustls with oauth2 all you need to specify: