Switch to async-rustls

tide-rustls is rustls-specific, and using async-rustls will allow users
of tide-rustls to depend on that.
This commit is contained in:
Josh Triplett 2021-03-19 16:59:55 -07:00
parent 895760f75e
commit 2990e7d4a0
5 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,9 @@
[package]
name = "tide-rustls"
version = "0.2.0"
version = "0.3.0"
authors = ["Jacob Rothstein <hi@jbr.me>"]
edition = "2018"
description = "tide tls listener based on async-tls and rustls"
description = "tide tls listener based on async-rustls and rustls"
readme = "README.md"
repository = "https://github.com/jbr/tide-rustls"
documentation = "https://docs.rs/tide-rustls"
@ -14,7 +14,7 @@ categories = ["web-programming::http-server", "web-programming"]
[dependencies]
async-std = "1.7.0"
tide = { version = "0.16.0", default-features = false }
async-tls = "0.11.0"
async-rustls = "0.2.0"
rustls = "0.19.0"
async-h1 = "2.2.0"
async-dup = "1.2.2"

View File

@ -41,5 +41,5 @@ pub(crate) use tls_stream_wrapper::TlsStreamWrapper;
pub use tls_listener::TlsListener;
pub use tls_listener_builder::TlsListenerBuilder;
pub use async_tls;
pub use async_rustls;
pub use rustls;

View File

@ -8,7 +8,7 @@ use async_std::net::{TcpListener, TcpStream};
use async_std::prelude::*;
use async_std::{io, task};
use async_tls::TlsAcceptor;
use async_rustls::TlsAcceptor;
use rustls::internal::pemfile::{certs, pkcs8_private_keys, rsa_private_keys};
use rustls::{Certificate, NoClientAuth, PrivateKey, ServerConfig};

View File

@ -1,6 +1,6 @@
use std::fmt::{self, Debug, Formatter};
use async_tls::TlsAcceptor;
use async_rustls::TlsAcceptor;
use rustls::ServerConfig;
use std::path::PathBuf;

View File

@ -1,7 +1,7 @@
use async_dup::{Arc, Mutex};
use async_rustls::server::TlsStream;
use async_std::io::{Read, Result, Write};
use async_std::net::TcpStream;
use async_tls::server::TlsStream;
use std::pin::Pin;
use std::task::{Context, Poll};