Chore: remove unused futures crate for openssl and native-tls

This commit is contained in:
Basti Ortiz 2022-08-14 23:43:12 +08:00
parent 65c1d146a6
commit aeb8fe0df0
No known key found for this signature in database
GPG Key ID: 1402D5CB17F48E1B
4 changed files with 6 additions and 6 deletions

View File

@ -16,12 +16,12 @@ default = ["runtime"]
runtime = ["tokio-postgres/runtime"] runtime = ["tokio-postgres/runtime"]
[dependencies] [dependencies]
futures = "0.3"
native-tls = "0.2" native-tls = "0.2"
tokio = "1.0" tokio = "1.0"
tokio-native-tls = "0.3" tokio-native-tls = "0.3"
tokio-postgres = { version = "0.7.0", path = "../tokio-postgres", default-features = false } tokio-postgres = { version = "0.7.0", path = "../tokio-postgres", default-features = false }
[dev-dependencies] [dev-dependencies]
tokio = { version = "1.0", features = ["full"] } futures-util = "0.3"
tokio = { version = "1.0", features = ["macros", "net", "rt"] }
postgres = { version = "0.19.0", path = "../postgres" } postgres = { version = "0.19.0", path = "../postgres" }

View File

@ -1,4 +1,4 @@
use futures::FutureExt; use futures_util::FutureExt;
use native_tls::{self, Certificate}; use native_tls::{self, Certificate};
use tokio::net::TcpStream; use tokio::net::TcpStream;
use tokio_postgres::tls::TlsConnect; use tokio_postgres::tls::TlsConnect;

View File

@ -16,12 +16,12 @@ default = ["runtime"]
runtime = ["tokio-postgres/runtime"] runtime = ["tokio-postgres/runtime"]
[dependencies] [dependencies]
futures = "0.3"
openssl = "0.10" openssl = "0.10"
tokio = "1.0" tokio = "1.0"
tokio-openssl = "0.6" tokio-openssl = "0.6"
tokio-postgres = { version = "0.7.0", path = "../tokio-postgres", default-features = false } tokio-postgres = { version = "0.7.0", path = "../tokio-postgres", default-features = false }
[dev-dependencies] [dev-dependencies]
tokio = { version = "1.0", features = ["full"] } futures-util = "0.3"
tokio = { version = "1.0", features = ["macros", "net", "rt"] }
postgres = { version = "0.19.0", path = "../postgres" } postgres = { version = "0.19.0", path = "../postgres" }

View File

@ -1,4 +1,4 @@
use futures::FutureExt; use futures_util::FutureExt;
use openssl::ssl::{SslConnector, SslMethod}; use openssl::ssl::{SslConnector, SslMethod};
use tokio::net::TcpStream; use tokio::net::TcpStream;
use tokio_postgres::tls::TlsConnect; use tokio_postgres::tls::TlsConnect;