Rustls vs NativeTls

⚓ Rust    📅 2025-06-23    👤 surdeus    👁️ 5      

surdeus

Warning

This post was published 49 days ago. The information described in this article may have changed.

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Rustls vs NativeTls

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?

  • Because rustls does not depend on the system it is more portable.
  • Code using 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

Read full topic

🏷️ rust_feed