smol-rs/smol

TLS example should use `async_tls` instead of `async-native-tls`

YuhanLiin opened this issue · 0 comments

The TLS example depends on async-native-tls, which has async-std as a dependency. I'm not sure how compatible smol is with libraries based on async-std, which is a whole other runtime. This also raises the question of whether futures-lite crates are compatible with futures-based crates, since the two use different Futures libraries. Even if compatibility isn't an issue, having async-std alongside smol will blow up compile times, which defeats the purpose of using smol in the first place. I suggest we use async_tls instead, since it doesn't depend on async-std or futures.