19 unstable releases

0.10.2 Oct 31, 2024
0.10.1 Jul 6, 2024
0.10.0 Mar 15, 2024
0.9.1 Dec 23, 2023
0.1.1 Feb 4, 2019

#164 in Network programming

Download history 13716/week @ 2024-07-18 20455/week @ 2024-07-25 16143/week @ 2024-08-01 16815/week @ 2024-08-08 18177/week @ 2024-08-15 20856/week @ 2024-08-22 20161/week @ 2024-08-29 17442/week @ 2024-09-05 19718/week @ 2024-09-12 12984/week @ 2024-09-19 13544/week @ 2024-09-26 14465/week @ 2024-10-03 15830/week @ 2024-10-10 16011/week @ 2024-10-17 16196/week @ 2024-10-24 18767/week @ 2024-10-31

71,236 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–26MB
~567K SLoC