fix doc-feature synchro
This commit is contained in:
parent
53016a005b
commit
3200870079
|
@ -13,7 +13,10 @@ use std::{
|
|||
/// A [`TlsProvider`] that uses `native_tls`.
|
||||
///
|
||||
/// It supports wrapping any reasonable stream type that implements `AsyncRead` + `AsyncWrite`.
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "native-tls")))]
|
||||
#[cfg_attr(
|
||||
docsrs,
|
||||
doc(cfg(all(feature = "native-tls", any(feature = "tokio", feature = "async-std"))))
|
||||
)]
|
||||
#[derive(Default, Clone)]
|
||||
#[non_exhaustive]
|
||||
pub struct NativeTlsProvider {}
|
||||
|
|
|
@ -15,7 +15,10 @@ use std::{
|
|||
/// A [`TlsProvider`] that uses `rustls`.
|
||||
///
|
||||
/// It supports wrapping any reasonable stream type that implements `AsyncRead` + `AsyncWrite`.
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "rustls")))]
|
||||
#[cfg_attr(
|
||||
docsrs,
|
||||
doc(cfg(all(feature = "rustls", any(feature = "tokio", feature = "async-std"))))
|
||||
)]
|
||||
#[derive(Clone)]
|
||||
#[non_exhaustive]
|
||||
pub struct RustlsProvider {
|
||||
|
|
|
@ -17,6 +17,8 @@ additional_provided['tor-rtcompat'] = [
|
|||
('PreferredRuntime', 'all(feature = "rustls", not(feature = "native-tls"))'),
|
||||
('PreferredRuntime', 'feature = "native-tls"'),
|
||||
('PreferredRuntime', 'all(feature = "rustls", not(feature = "native-tls"))'),
|
||||
('NativeTlsProvider', 'all(feature = "native-tls", any(feature = "tokio", feature = "async-std"))'),
|
||||
('RustlsProvider', 'all(feature = "rustls", any(feature = "tokio", feature = "async-std"))'),
|
||||
]
|
||||
|
||||
# Sha1 is present both ways
|
||||
|
|
Loading…
Reference in New Issue