-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improve rustls cargo features #270
Conversation
Thanks! So the idea is to make |
I don't have much experience with feature flags. When does it make sense to forward feature flags like in this PR? I understand why it makes sense for crates that are tightly coupled and do re-exporting, e.g. If I understand feature flags correctly, you can simply add this to your imap-next = "0.2.0"
tokio-rustls = { version = "*", features = ["ring"] } And then the feature Using the re-exported |
Yes, so it's based on the latest version of
Because they are additive, we end up with both |
Ah, now I understand, so My problem with this PR is that we arbitrarily forward some features of [features]
default = [
"stream",
# These are the default features of tokio-rustls
"tokio-rustls/logging",
"tokio-rustls/tls12",
"tokio-rustls/aws_lc_rs",
]
# ...
[dependencies]
tokio-rustls = { version = "0.26.0", optional = true, default-features = false }
# ... Then you can use it like this: imap-next = { version = "0.2.0", default-features = false, features = ["stream"] }
tokio-rustls = { version = "*", default-features = false, features = ["logging", "tls12", "ring"] } |
Or maybe just remove the default features? [features]
default = ["stream"]
# ...
[dependencies]
tokio-rustls = { version = "0.26.0", optional = true, default-features = false }
# ... Then you can use it like this: imap-next = "0.2.0"
tokio-rustls = { version = "*", default-features = false, features = ["logging", "tls12", "ring"] } I can't name any reason why |
I think this should work, let me try. |
0ba4c87
to
0906caa
Compare
Looks like it works as expected, ready to merge! |
Pull Request Test Coverage Report for Build 10758338673Details
💛 - Coveralls |
No description provided.