mirror of https://github.com/http-rs/tide-rustls
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:
parent
895760f75e
commit
2990e7d4a0
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
Loading…
Reference in New Issue