From eef070a52a2ea4e76fa488e6126af0d5f4e9d822 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sat, 9 Mar 2024 07:39:18 +0900 Subject: [PATCH] Replace futures crate with standard library (#17) --- Cargo.toml | 1 - src/lib.rs | 11 ++++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bae0cdb..34985ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/lib.rs b/src/lib.rs index b4852d0..459e7dd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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}, @@ -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;