rustls: A modern TLS library written in Rust.
What problem it solves
Applications need a TLS implementation that provides strong cryptographic defaults without requiring security-related configuration. It also needs to work across platforms and environments that have different cryptography, compliance, or feature requirements.
Key features
Modern TLS protocols — Implements TLS 1.2 and TLS 1.3 for both clients and servers.
Source: README
Secure defaults — Aims to provide a good level of cryptographic security without configuration, while excluding unsafe features and obsolete cryptography by default.
Source: README
Pluggable cryptography — Cryptographic primitives are supplied through a `crypto::CryptoProvider`, allowing dependencies to be replaced for platform, environment, or compliance requirements.
Source: README
Provider choices — The project maintains the `rustls-aws-lc-rs` and `rustls-ring` providers, and also documents community-developed third-party providers.
Source: README
Client and server examples — Includes examples that demonstrate I/O with `stream::Stream` and more complex asynchronous I/O using `mio`.
Source: README, examples
Quick start
Copied verbatim from the project's README.
$ cargo run --bin tls-client-mio -- --http jbp.io
HTTP/1.1 200 OK
Date: Tue, 23 Jun 2026 16:13:40 GMT
Content-Type: text/html; charset=utf-8
Connection: close
(...)Who it may suit
This may suit Rust developers building client or server applications that need TLS 1.2 or TLS 1.3 support and require configurable cryptography providers.
Topics to discuss
How should cryptography providers be selected for different platform and compliance requirements?
What examples or application patterns would help newcomers use the client and server APIs?
Which API stability improvements would make adopting the library easier?
Written by ReadmeX AI from the project's README, source and public GitHub data; it may contain mistakes.
Read the original README https://github.com/rustls/rustls#readme
ReadmeX opened this community for a trending project; it is not run by the project. Maintainers can claim it from the community page.
Comments
…