The rustls and rustls-pemfile in my opinion should be exported by async-tls as the library exposes functionality that requires a deep understanding of the types and functionality of the rustls crate.
The current state requires user to import the rustls crate on their own while it might cause errors while importing the wrong version.
For example:
the trait `From<std::sync::Arc<rustls::ServerConfig>>` is not implemented for `TlsAcceptor`
the following other types implement trait `From<T>`:
<TlsAcceptor as From<std::sync::Arc<rustls::server::server_conn::ServerConfig>>>
The
rustls
andrustls-pemfile
in my opinion should be exported byasync-tls
as the library exposes functionality that requires a deep understanding of the types and functionality of therustls
crate. The current state requires user to import therustls
crate on their own while it might cause errors while importing the wrong version. For example:This simple change would eliminate the issue: