Skip to content

Commit e7c5311

Browse files
committed
Port TLS examples off futures
1 parent 99f396d commit e7c5311

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/client/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ authors = ["quininer <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
futures-preview = "0.3.0-alpha.17"
98
async-std = { path = "../../../async-std" }
109
structopt = "0.2"
1110
async-tls = { path = "../.." }

examples/client/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#![feature(async_await)]
22

33
use async_std::io;
4+
use async_std::io::Write;
45
use async_std::net::TcpStream;
56
use async_std::task;
67
use async_tls::TlsConnector;
7-
use futures::io::AsyncWriteExt;
88
use std::net::ToSocketAddrs;
99
use structopt::StructOpt;
10+
1011
#[derive(StructOpt)]
1112
struct Options {
1213
/// The host to connect to

examples/server/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ authors = ["quininer <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
futures-preview = "0.3.0-alpha.17"
98
structopt = "0.2"
109
async-tls = { path = "../.." }
1110
async-std = { path = "../../../async-std" }

examples/server/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#![feature(async_await)]
22

33
use async_std::io;
4+
use async_std::io::Write;
45
use async_std::net::{TcpListener, TcpStream};
6+
use async_std::stream::Stream;
57
use async_std::task;
68
use async_tls::TlsAcceptor;
7-
use futures::prelude::*;
89
use rustls::internal::pemfile::{certs, rsa_private_keys};
910
use rustls::{Certificate, NoClientAuth, PrivateKey, ServerConfig};
1011
use std::fs::File;

0 commit comments

Comments
 (0)