fix doc-feature synchro

This commit is contained in:
trinity-1686a 2022-10-16 20:48:44 +02:00
parent 53016a005b
commit 3200870079
3 changed files with 10 additions and 2 deletions

View File

@ -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 {}

View File

@ -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 {

View File

@ -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