Debian Codegraph @

/

debian rust-async-tls 0.13.0-4debian librust-async-tls-dev debian librust-async-tls+client-dev debian librust-async-tls+default-dev debian librust-async-tls+early-data-dev debian librust-async-tls+rustls-native-certs-dev debian librust-async-tls+rustls-webpki-dev debian librust-async-tls+server-dev debian librust-async-tls-0-dev debian librust-async-tls-0+client-dev debian librust-async-tls-0+default-dev debian librust-async-tls-0+early-data-dev debian librust-async-tls-0+rustls-native-certs-dev debian librust-async-tls-0+rustls-webpki-dev debian librust-async-tls-0+server-dev debian librust-async-tls-0.13-dev debian librust-async-tls-0.13+client-dev debian librust-async-tls-0.13+default-dev debian librust-async-tls-0.13+early-data-dev debian librust-async-tls-0.13+rustls-native-certs-dev
10 more… debian librust-async-tls-0.13+rustls-webpki-dev debian librust-async-tls-0.13+server-dev debian librust-async-tls-0.13.0-dev debian librust-async-tls-0.13.0+client-dev debian librust-async-tls-0.13.0+default-dev debian librust-async-tls-0.13.0+early-data-dev debian librust-async-tls-0.13.0+rustls-native-certs-dev debian librust-async-tls-0.13.0+rustls-webpki-dev debian librust-async-tls-0.13.0+server-dev cargo async-tls 0.13.0
debianinijsonmakefilemarkdownrustrustrust-c-abishelltomlyaml 32 files · 371 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • cargo, debhelper-compat, librust-futures-core-0.3+default-dev, librust-futures-io-0.3+default-dev, librust-rustls-0.23+logging-dev, librust-rustls-0.23+ring-dev, librust-rustls-0.23+std-dev, librust-rustls-0.23+tls12-dev, librust-rustls-native-certs-0.8+default-dev, librust-rustls-pemfile-2+default-dev, librust-rustls-webpki-0.103+default-dev, libstd-rust-dev, rustc
README (full)

async-tls

Async TLS/SSL streams using Rustls.


Maintenance Notice

I, Florian Gilcher, am currently the main maintainer of async-tls. Due to general workload, I would like the hand the maintenance off to someone else carrying the general vision of async-tls:

  • Runtime-independence
  • Backend-independence (currently not implemented)
  • Focused on use-case based configuration rather then exposing all configurations

I expect applicants for maintainership to present a committment of at least 4h of time/week initially, so I recommend getting corporate backing first. The number isn't strict, but I want the process to improve maintenance. I'm happy with a group of multiple maintainers.

I commit to weekly feedback of 30 minutes for the first 2 months - more in the initial days of handover.

If interested, please reach out to me at through email.

Features

async-tls can be used both in server and client programs. To save compilation times, you can switch off parts of this for faster compile times.

To only use async-tls on a client, deactivate default features and use the "client" feature.

[dependencies.async-tls]
version = "0.8"
default-features = false
features = ["client"]

To only use async-tls on for the server side, deactivate default features and use the "server" feature.

[dependencies.async-tls]
version = "0.8"
default-features = false
features = ["server"]

Simple Client

use async_tls::TlsConnector;
use async_std::net::TcpStream;

// ...

let tcp_stream = TcpStream::connect("rust-lang.org:443").await?;
let connector = TlsConnector::default();
let mut tls_stream = connector.connect("www.rust-lang.org", tcp_stream).await?;

// ...

Client Example Program

See examples/client. You can run it with:

cd examples/client
cargo run -- hsts.badssl.com

Server Example Program

See examples/server. You can run it with:

cd examples/server
cargo run -- 127.0.0.1:8080 --cert ../../tests/end.cert --key ../../tests/end.rsa

and point the client at it with:

cd examples/client
cargo run -- 127.0.0.1 --port 8080 --domain localhost --cafile ../../tests/end.chain

NOTE: Don't ever use those certificate files anywhere but for testing!

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

License & Origin

This project is licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

This started as a fork of tokio-rustls.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in async-tls by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

dir debian/
dir src/
dir tests/
file .cargo_vcs_info.json
file .gitignore
file .travis.yml
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md
file rustfmt.toml