20 releases

0.10.3 Jan 14, 2025
0.10.2 Oct 31, 2024
0.10.1 Jul 6, 2024
0.10.0 Mar 15, 2024
0.1.1 Feb 4, 2019

#143 in Network programming

Download history 16282/week @ 2024-10-09 15249/week @ 2024-10-16 16869/week @ 2024-10-23 19155/week @ 2024-10-30 20635/week @ 2024-11-06 19949/week @ 2024-11-13 21857/week @ 2024-11-20 19242/week @ 2024-11-27 22125/week @ 2024-12-04 24304/week @ 2024-12-11 16844/week @ 2024-12-18 7885/week @ 2024-12-25 14847/week @ 2025-01-01 21143/week @ 2025-01-08 25756/week @ 2025-01-15 19595/week @ 2025-01-22

82,645 downloads per month
Used in 18 crates (8 directly)

Apache-2.0

49KB
365 lines

tls-listener

Apache 2 License Crate version Docs Build status

This library is intended to automatically initiate a TLS connection as for each new connection in a source of new streams (such as a listening TCP or unix domain socket).

It can be used to easily create a Stream of TLS connections from a listening socket.

See examples for examples of usage.

You must enable either one of the rustls (more details below), native-tls, or openssl features depending on which implementation you would like to use.

When enabling the rustls feature, the rustls crate will be added as a dependency along with it's default cryptography provider. To avoid this behaviour and use other cryptography providers, the rustls-core feature can be used instead. Additional feature flags for other rustls built-in cryptography providers are also available: rustls-aws-lc (default), rustls-fips and rustls-ring

Dependencies

~3–29MB
~622K SLoC