-
Notifications
You must be signed in to change notification settings - Fork 94
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 --native-tls flag #154
Conversation
Is this because By the way, is there a way to mark these tls flags as, for the lack of a better word, "unstable"? because reqwest could hypothetically decide to deprecate one of the backends. |
I meant the cargo feature, not the runtime feature. It'd still use rustls by default, but it'd also compile with native-tls support since (AFAIK) it's stable enough to not hurt portability.
In principle they can do anything, but is there a reason to expect that? |
Ah, so you mean something like this? [target.'cfg(unix)'.dependencies.reqwest]
version = "0.11.1"
default-features = false
features = ["rustls-tls"]
[target.'cfg(any(windows, macos))'.dependencies.reqwest]
version = "0.11.1"
default-features = false
features = ["native-tls", "rustls-tls"]
# How can we later determine if native-tls is enabled 🤔?
# Edit: or maybe we can just check the current target
It was a hypothetical scenario. I don't have any reason to expect it. |
I hoped to enable xh's own |
I can't find a good way to get the library versions for I'll have to think a bit about what to include. |
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.
Should we update this line in the README.md
?
+ * rustls is used instead of the system's TLS library by default.
- * rustls is used instead of the system's TLS library.
I can't find anyone asking for DER support in HTTPie, so let's not bother. (I also don't have a good understanding of it.) I think it would make sense for the Releasing still works, with the usual caveat that I can't run the Windows and macOS binaries. |
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.
Approved 🎉
--debug
flag--rustls
flag?--cert
flag is already partially conditional?See #136