Add warnings to rustls
and native_tls
methods (#4790)
This commit is contained in:
parent
dca8acfee2
commit
65f650f7d9
1 changed files with 6 additions and 0 deletions
|
@ -86,6 +86,9 @@ impl Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Use Rustls to configure TLS connections
|
/// Use Rustls to configure TLS connections
|
||||||
|
///
|
||||||
|
/// WARNING: `rustls` is not stable yet. As we may need to upgrade this dependency from time to time
|
||||||
|
/// to keep up with its security fixes, this method is excluded from our stability guarantee.
|
||||||
#[cfg(feature = "rustls")]
|
#[cfg(feature = "rustls")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "rustls")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "rustls")))]
|
||||||
pub fn rustls(mut self, config: rustls::ClientConfig) -> Self {
|
pub fn rustls(mut self, config: rustls::ClientConfig) -> Self {
|
||||||
|
@ -94,6 +97,9 @@ impl Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Use native TLS to configure TLS connections
|
/// Use native TLS to configure TLS connections
|
||||||
|
///
|
||||||
|
/// WARNING: `native-tls` is not stable yet. As we may need to upgrade this dependency from time to time
|
||||||
|
/// to keep up with its security fixes, this method is excluded from our stability guarantee.
|
||||||
#[cfg(feature = "native-tls")]
|
#[cfg(feature = "native-tls")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "native-tls")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "native-tls")))]
|
||||||
pub fn native_tls(mut self, config: native_tls::TlsConnector) -> Self {
|
pub fn native_tls(mut self, config: native_tls::TlsConnector) -> Self {
|
||||||
|
|
Loading…
Reference in a new issue