Conversation
|
CI failing because it's treating |
TheBlueMatt
left a comment
There was a problem hiding this comment.
Hmm, rather than an indirect feature can we gate on the actual features we need?
| use std::sync::OnceLock; | ||
|
|
||
| #[cfg(all(feature = "native-tls", not(feature = "rustls")))] | ||
| #[cfg(all(feature = "https-native-tls", not(feature = "_https-rustls")))] |
There was a problem hiding this comment.
Can we gate this whole module on rustls so this isn't so much of a mess, or at least move to mod rustls_stuff { ... }; pub use rustls_stuff::*?
|
@TheBlueMatt you mean using |
|
Yea, that is what I was thinking. |
Similar to this pull request, I encountered an error using the
stdandrustlsfeatures together.This PR proposes using cfg gates with TLS features instead of relying on implicit dependency features.
any(feature = "https-rustls", feature = "https-rustls-probe")Error Example