Skip to content

Commit 0376eaf

Browse files
authored
fix: Allow to access async_native_tls when using tokio (#125)
1 parent edab188 commit 0376eaf

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

suppaftp/src/lib.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,17 @@ pub extern crate native_tls_crate as native_tls;
167167
#[cfg_attr(docsrs, doc(cfg(feature = "rustls")))]
168168
pub extern crate rustls_crate as rustls;
169169
// -- async deps
170-
#[cfg(feature = "async-std-async-native-tls")]
171-
#[cfg_attr(docsrs, doc(cfg(feature = "async-std-async-native-tls")))]
170+
#[cfg(any(
171+
feature = "tokio-async-native-tls",
172+
feature = "async-std-async-native-tls"
173+
))]
174+
#[cfg_attr(
175+
docsrs,
176+
doc(cfg(any(
177+
feature = "tokio-async-native-tls",
178+
feature = "async-std-async-native-tls"
179+
)))
180+
)]
172181
pub extern crate async_native_tls_crate as async_native_tls;
173182

174183
// -- export (common)

0 commit comments

Comments
 (0)