diff --git a/Cargo.toml b/Cargo.toml index 30d565e..201d37f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,10 +10,10 @@ An implementation of SSL streams for Tokio backed by OpenSSL """ [dependencies] -futures-util = { version = "0.3", default-features = false } openssl = "0.10.61" openssl-sys = "0.9" tokio = "1.0" [dev-dependencies] +futures-util = { version = "0.3", default-features = false } tokio = { version = "1.0", features = ["full"] } diff --git a/build.rs b/build.rs index 71e3670..662540b 100644 --- a/build.rs +++ b/build.rs @@ -2,6 +2,8 @@ use std::env; fn main() { + println!("cargo:rustc-check-cfg=cfg(ossl111)"); + if let Ok(version) = env::var("DEP_OPENSSL_VERSION_NUMBER") { let version = u64::from_str_radix(&version, 16).unwrap(); diff --git a/src/lib.rs b/src/lib.rs index b016573..47ff62f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,10 +5,10 @@ //! blocking [`Read`] and [`Write`] traits. #![warn(missing_docs)] -use futures_util::future; use openssl::error::ErrorStack; use openssl::ssl::{self, ErrorCode, ShutdownResult, Ssl, SslRef}; use std::fmt; +use std::future; use std::io::{self, Read, Write}; use std::pin::Pin; use std::task::{Context, Poll};