-
Notifications
You must be signed in to change notification settings - Fork 39
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
cargo: expose reqwest TLS feature flags #96
Conversation
This exposes two underlying TLS feature flags from reqwest, allowing consumers to pick openssl (default) or rustls implementation.
I verified that re-exposing the feature flag works with:
/cc @steveej |
Please explain the consequences for consumers after this change. |
@steveej do you want me to add a note to readme / docstring like https://docs.rs/reqwest/0.9.9/reqwest/#optional-features? Or are you just wondering about what's the default behavior? |
The latter, I'm clueless ;-) |
Oh, sorry, let me go in more details here then. reqwest recently gained feature flags to let consumers switch the underlying TLS implementation: https://docs.rs/reqwest/0.9.6/reqwest/#optional-features This PR just re-exposes those options to consumers of dkregistry. This adds
However, consumers can switch to rustls-only via the
If a consumer doesn't care about any of this, not specifying any feature flag will result in reqwest default/historical behavior of just using openssl. openshift/cincinnati#57 should fit in this case and not be concerned with rustls at all anymore. I hope it is a bit clearer now, sorry for being terse initially. That said, I think we can still bikeshed on features name (should I stick to the same ones reqwest uses?) and see where to document them (is this comment enough or should I add a persistent note somewhere else?) |
Thanks for elaborating, very helpful and I understand the point now; we enable consumers of
I'm fine with the naming and the comment is enough for me to understand it, so it's likely enough for others if we add it to the docs. |
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.
Proceeding with my comment there's just one change to make: please add your explanation to the toplevel README.md
Ack, I pushed an additional commit on top to document these new feature flags. |
This exposes two underlying TLS feature flags from reqwest, allowing
consumers to pick openssl (default) or rustls implementation.
Closes #86 (superseded).