blackbeam / rust-mysql-simple

Mysql client library implemented in rust.
Apache License 2.0
663 stars 144 forks source link

Add support for rustls via a feature flag #280

Closed TobiasDeBruijn closed 2 years ago

TobiasDeBruijn commented 3 years ago

Hi there,

Something I find missing in the current mysql crate is the forced dependency on OpenSSL, which I want to avoid as much as possible. Other crates like reqwest solve this by having a feature flag to use rustls instead. reqwest relies on hyper-rustls.

Proposed solution:
Add a feature flag to the mysql crate to use rustls instead of openssl, or even to disable TLS completely for those that don't use it.

Thanks!

yerke commented 3 years ago

I agree that it would nice to have.