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

#186 in Network programming

Download history 11061/week @ 2023-12-18 3940/week @ 2023-12-25 9062/week @ 2024-01-01 11116/week @ 2024-01-08 12076/week @ 2024-01-15 12129/week @ 2024-01-22 10166/week @ 2024-01-29 9905/week @ 2024-02-05 11963/week @ 2024-02-12 10456/week @ 2024-02-19 12764/week @ 2024-02-26 10393/week @ 2024-03-04 11740/week @ 2024-03-11 11220/week @ 2024-03-18 10174/week @ 2024-03-25 11989/week @ 2024-04-01

45,402 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–15MB
~181K SLoC