We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 142ee96 commit 10db235Copy full SHA for 10db235
build.rs
@@ -1,13 +1,12 @@
1
use std::env;
2
-use std::str::FromStr;
3
4
fn main() {
5
// OpenSSL >= 1.1.0 can be initialized concurrently and is initialized correctly by libcurl.
6
// <= 1.0.2 need locking callbacks, which are provided by openssl_sys::init().
7
- let use_openssl = match env::var("DEP_OPENSSL_VERSION") {
8
- Ok(ver) => {
9
- let ver = u32::from_str(&ver).unwrap();
10
- if ver < 110 {
+ let use_openssl = match env::var("DEP_OPENSSL_VERSION_NUMBER") {
+ Ok(version) => {
+ let version = u64::from_str_radix(&version, 16).unwrap();
+ if version < 0x1_01_00_00_0 {
11
println!("cargo:rustc-cfg=need_openssl_init");
12
}
13
true
0 commit comments