Warning
This post was published 49 days ago. The information described in this article may have changed.
Hi, just a quick small question.
The difference between rustls and native-tls is that the former is a pure-Rust implementation of the TLS protocol while the latter is just a wrapper communicating with the TLS implementation provided by the system (e.g OpenSSL).
Are these assumptions correct?
rustls
does not depend on the system it is more portable.native-tls
might not work on some systems missing dependencies.rustls
is more secure then native-tls
because it is pure-Rust (memory safe).rustls
is a suitable solution for software which needs to work on different systems out-of-the-box, while native-tls
would be preferred when making system-specific software.rustls
is more performant.rustls
often "just works" while native-tls
might give portability issues.And is it also true that when using rustls
you have to specify the root certificates manually?
7 posts - 3 participants
🏷️ rust_feed