-
Notifications
You must be signed in to change notification settings - Fork 66
fix: expose TLS backend choice in features #44
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
fix: expose TLS backend choice in features #44
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Thanks for the contribution! Will discuss with team whether it makes sense to phase out the async-https
feature.
Pull Request Test Coverage Report for Build 4518650682Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Cargo.toml
Outdated
async = ["reqwest", "reqwest/socks"] | ||
async-https = ["async", "reqwest/default-tls"] | ||
async-https-native = ["async", "reqwest/native-tls"] | ||
async-https-rustls = ["async", "reqwest/rustls"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're supposed to use the feature request/rustls-tls
which defaults to using webpki-roots, or do you want manually set the root certs? In that case we'd need request/rustls-tls-manual-roots
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or can add both options:
async-https-rustls = ["async", "reqwest/rustls"] | |
async-https-rustls = ["async", "reqwest/rustls-tls"] | |
async-https-rustls-manual-roots = ["async", "reqwest/rustls-tls-manual-roots"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx, fixed!
default = ["blocking", "async", "async-https"] | ||
blocking = ["ureq", "ureq/socks-proxy"] | ||
async = ["reqwest", "reqwest/socks"] | ||
async-https = ["async", "reqwest/default-tls"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's OK to leave the async-https
feature in for now as an option for folks who decided not to decide which TLS to use and go with the default request
chooses.
2d0a683
to
44f7d29
Compare
What's the status on this? Do I need to change anything? |
Sorry for the delay on this. This is good. I'm merging it. |
I left the default
async-https
feature in to make this a non-breaking change. Could be phased out though imo, just make one of the new features a default feature instead.Fixes #43