-
Notifications
You must be signed in to change notification settings - Fork 175
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
Provide a way to disable tls12
feature for rustls
#842
Comments
Good idea! Thanks! |
Me testing to do a simple binary with/without tls12 enabled.
|
Closed
(2821384-2714424)/2821384 = 0.038 So tls12 takes 3.8% of a macOS binary. Now, the question is: the complication of having this as a separate feature, is it worth 3.8% potential reduction in size? |
This complicates the feature flag situation for a rather small gain. I don't want this, for now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ureq is a lightweight HTTP client often used to communicate with one or a few hardcoded servers (e.g. making API calls). TLS 1.2 support is mostly unnecessary in those situations because we can know for sure if the hardcoded servers support TLS 1.31 or not.
TLS 1.2 in rustls often requires separate code paths to handle. Disabling the
tls12
feature can reduce binary size by ~100kb. It'd be great if ureq can provide a way to do so.Footnotes
Which is also highly likely, as 70% of sites now support TLS 1.3 according to https://www.ssllabs.com/ssl-pulse/ ↩
The text was updated successfully, but these errors were encountered: