1 2 3 4 5 6 7 8 9 10 11
use std::env; fn main() { if let Ok(v) = env::var("DEP_OPENSSL_VERSION_NUMBER") { let version = u64::from_str_radix(&v, 16).unwrap(); if version >= 0x1_01_00_00_0 { println!("cargo:rustc-cfg=ossl110"); } } }