#tls #async #ssl #futures

nightly tls-async

TLS support for AsyncRead/AsyncWrite using native-tls

7 releases

✓ Uses Rust 2018 edition

0.3.0-alpha.7 Jun 6, 2019
0.3.0-alpha.6 May 13, 2019
0.3.0-alpha.5 Apr 26, 2019
0.3.0-alpha.2 Feb 26, 2019
0.3.0-alpha.1 Jan 22, 2019

#85 in Asynchronous

Download history 29/week @ 2019-02-20 84/week @ 2019-02-27 60/week @ 2019-03-06 37/week @ 2019-03-13 49/week @ 2019-03-20 28/week @ 2019-03-27 22/week @ 2019-04-03 51/week @ 2019-04-10 24/week @ 2019-04-17 74/week @ 2019-04-24 26/week @ 2019-05-01 25/week @ 2019-05-08 44/week @ 2019-05-15 59/week @ 2019-05-22 15/week @ 2019-05-29

166 downloads per month

MIT license

22KB
288 lines

tls-async

build status crates.io version docs.rs docs MIT licensed

This is an experimental fork of tokio-tls on top of Futures 0.3 AsyncRead, AsyncWrite, and Compat. It is primarily intended for usage with Romio.

An implementation of TLS/SSL streams for Futures 0.3 built on top of the native-tls crate

Documentation

Usage

First, add this to your Cargo.toml:

[dependencies]
tls-async = "0.3.0-alpha.5"

Next, add this to your crate:

use tls_async::{TlsConnector, TlsAcceptor};

You can find few examples how to use this crate in tests directory.

By default the native-tls crate currently uses the "platform appropriate" backend for a TLS implementation. This means:

Typically these selections mean that you don't have to worry about a portability when using TLS, these libraries are all normally installed by default.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in tls-async by you, shall be licensed as MIT, without any additional terms or conditions.

Dependencies

~4MB
~71K SLoC