rustls / tokio-rustls

Async TLS for the Tokio runtime
Apache License 2.0
125 stars 70 forks source link

Ensure examples use re-exported rustls types outside of the tokio-rustls context #56

Closed mdodkins closed 8 months ago

mdodkins commented 8 months ago

Addresses an issue I encountered trying to use the client and server examples in standalone projects:

the trait From<Arc<rustls::ServerConfig>> is not implemented for TlsAcceptor the trait From<Arc<rustls::ClientConfig>> is not implemented for TlsConnector

These modifications ensure that the code uses rustls types re-exported by tokio-rustls when compiled in a context outside of the library.