Skip to content

Commit

Permalink
Merge pull request #50 from hhirtz/std-fut
Browse files Browse the repository at this point in the history
Make future_utils a dev-dependency
  • Loading branch information
sfackler authored Sep 14, 2024
2 parents 01d32fa + 2d3cf83 commit 0a256e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 0a256e4

Please sign in to comment.