quininer / tokio-rustls

Asynchronous TLS/SSL streams for Tokio using Rustls.
142 stars 38 forks source link

Reexport deps #21

Closed sanmai-NL closed 6 years ago

sanmai-NL commented 6 years ago

This helps encapsulate deps and match crate versions for downstream use. I have a need for this already, since I’m getting compilation errors:

    = note: expected type `rustls::server::ServerConfig`
               found type `rustls::ServerConfig`
note: Perhaps two different versions of crate `rustls` are being used?
quininer commented 6 years ago

Thanks for your PR! Can you modify README and example to make it use reexport rustls?

sanmai-NL commented 6 years ago

Done. BTW: You may want to clean up the imports lines a bit further and run rustfmt.

quininer commented 6 years ago

I don't want to rustfmt until it can express the format I like.