Skip to content

Commit

Permalink
Replace futures crate with standard library (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Mar 8, 2024
1 parent 13bdbf0 commit eef070a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ github-actions = { repository = "https://github.com/ark0f/hyper-socks2", workflo
[dependencies]
hyper = "1"
async-socks5 = "0.6"
futures = "0.3"
tokio = "1.0"
thiserror = "1.0"
http = "1"
Expand Down
11 changes: 6 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ compile_error!(
);

use async_socks5::AddrKind;
use futures::{
ready,
task::{Context, Poll},
};
use http::uri::Scheme;
use hyper::{
rt::{Read, Write},
Expand All @@ -49,7 +45,12 @@ use hyper_rustls::HttpsConnector;
#[cfg(feature = "tls")]
use hyper_tls::HttpsConnector;
use hyper_util::rt::TokioIo;
use std::{future::Future, io, pin::Pin};
use std::{
future::Future,
io,
pin::Pin,
task::{ready, Context, Poll},
};
use tokio::io::BufStream;
use tower_service::Service;

Expand Down

0 comments on commit eef070a

Please sign in to comment.