17 releases (9 breaking)

0.10.0 Mar 15, 2024
0.9.1 Dec 23, 2023
0.8.0 Oct 19, 2023
0.7.0 Apr 1, 2023
0.1.1 Feb 4, 2019

#185 in Network programming

Download history 4427/week @ 2023-12-23 8518/week @ 2023-12-30 11040/week @ 2024-01-06 11877/week @ 2024-01-13 12414/week @ 2024-01-20 10419/week @ 2024-01-27 9984/week @ 2024-02-03 11664/week @ 2024-02-10 10530/week @ 2024-02-17 12905/week @ 2024-02-24 10189/week @ 2024-03-02 11890/week @ 2024-03-09 11059/week @ 2024-03-16 10253/week @ 2024-03-23 11939/week @ 2024-03-30 9969/week @ 2024-04-06

45,753 downloads per month
Used in 9 crates

Apache-2.0

47KB
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, native-tls, or openssl features depending on which implementation you would like to use.


lib.rs:

Async TLS listener

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

Features:

  • rustls: Support the tokio-rustls backend for tls (default)
  • native-tls: support the tokio-native-tls backend for tls
  • tokio-net: Implementations for tokio socket types (default)
  • rt: Features that depend on the tokio runtime, such as SpawningHandshakes

Dependencies

~3–16MB
~184K SLoC