async-openssl 0.2.12

An implementation of SSL streams for async IO backed by OpenSSL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::env;

fn main() {
    // Cargo still reruns this when openssl-sys's metadata changes.
    println!("cargo:rerun-if-changed=build.rs");
    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();

        if version >= 0x1010_1000 {
            println!("cargo:rustc-cfg=ossl111");
        }
    }
}