-
Notifications
You must be signed in to change notification settings - Fork 342
feat: add feature to use rustls instead of relying on openssl #3870
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ allow = [ | |
| "BSL-1.0", | ||
| "ISC", | ||
| "MIT", | ||
| "CDLA-Permissive-2.0", | ||
| "MPL-2.0", | ||
| # "OpenSSL", | ||
| "Unicode-3.0", | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -58,6 +58,7 @@ reqwest = ["dep:reqwest"] | |||||
| reqwest_deflate = ["reqwest", "reqwest/deflate"] | ||||||
| reqwest_gzip = ["reqwest", "reqwest/gzip"] | ||||||
| reqwest_native_tls = ["reqwest", "reqwest/native-tls"] | ||||||
| reqwest_rustls = ["reqwest", "reqwest/rustls-no-provider"] | ||||||
|
||||||
| reqwest_rustls = ["reqwest", "reqwest/rustls-no-provider"] | |
| reqwest_rustls = ["reqwest", "reqwest/rustls-tls-native-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.
Because
azure_core’sdefaultfeatures still includereqwest_native_tls, users who addfeatures = ["reqwest_rustls"]without also disabling default features will end up enabling both TLS backends and will still pull in native-tls/OpenSSL on some platforms. Consider documenting the intended dependency pattern (default-features = false+ explicitly selecting one TLS backend), or adding a guard (e.g., a compile-time error or a dedicatedreqwest_default_tls_backendfeature) to reduce accidental misconfiguration.