-
Notifications
You must be signed in to change notification settings - Fork 10
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
Stop automatically pulling in aws-lc as a dependency #46
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,11 @@ license = "Apache-2.0" | |
|
||
[features] | ||
default = ["tokio-net"] | ||
rustls = ["tokio-rustls"] | ||
rustls-core = ["tokio-rustls"] | ||
rustls-aws-lc = ["rustls-core", "tokio-rustls/aws-lc-rs"] | ||
rustls-fips = ["rustls-aws-lc", "tokio-rustls/fips"] | ||
rustls-ring = ["rustls-core", "tokio-rustls/ring"] | ||
rustls = ["rustls-aws-lc", "tokio-rustls/default"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably also include "tokio-rustls/tls12" and "tokio-rustls/logging" since those are included in the default features. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But aren't we including the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, yeah you're right |
||
native-tls = ["tokio-native-tls"] | ||
openssl = ["tokio-openssl", "openssl_impl"] | ||
rt = ["tokio/rt"] | ||
|
@@ -22,7 +26,7 @@ pin-project-lite = "0.2.13" | |
thiserror = "1.0.30" | ||
tokio = { version = "1.0", features = ["time"] } | ||
tokio-native-tls = { version = "0.3.0", optional = true } | ||
tokio-rustls = { version = ">=0.25.0,<0.27", optional = true } | ||
tokio-rustls = { version = ">=0.25.0,<0.27", default-features = false, optional = true } | ||
tokio-openssl = { version = "0.6.3", optional = true } | ||
openssl_impl = { package = "openssl", version = "0.10.32", optional = true } | ||
|
||
|
@@ -60,5 +64,14 @@ name = "http-change-certificate" | |
path = "examples/http-change-certificate.rs" | ||
|
||
[package.metadata.docs.rs] | ||
features = ["rustls", "native-tls", "openssl", "rt"] | ||
features = [ | ||
"rustls-core", | ||
"rustls", | ||
"rustls-aws-lc", | ||
"rustls-fips", | ||
"rustls-ring", | ||
"native-tls", | ||
"openssl", | ||
"rt" | ||
] | ||
rustdoc-args = ["--cfg", "docsrs"] |
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.
All these features aren't strictly necessary.
The user could potentially enable these features on the tokio-rustls dependency directly.
All this create actually needs to depend on is the core tokio-rustls api.
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.
Well, you are right. But consider the fact that
tokio-rustls
which is also an "intermediate" crate between us and the actualrustls
crate has similar feature flags which do nothing but pass themselves torustls
. (I've checked it's source code and they actually do nothing else)