18 releases (9 breaking)

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

#1 in #incoming-connection

Download history 11884/week @ 2024-03-31 11870/week @ 2024-04-07 9799/week @ 2024-04-14 10414/week @ 2024-04-21 10303/week @ 2024-04-28 7765/week @ 2024-05-05 9166/week @ 2024-05-12 10396/week @ 2024-05-19 9016/week @ 2024-05-26 11257/week @ 2024-06-02 9451/week @ 2024-06-09 9587/week @ 2024-06-16 9004/week @ 2024-06-23 15760/week @ 2024-06-30 19436/week @ 2024-07-07 9273/week @ 2024-07-14

53,897 downloads per month
Used in 15 crates (8 directly)

Apache-2.0

48KB
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–15MB
~199K SLoC