find_normal::get_openssl(target)
}
+fn check_ssl_kind() {
+ if cfg!(feature = "unstable_boringssl") {
+ println!("cargo:rustc-cfg=boringssl");
+ // BoringSSL does not have any build logic, exit early
+ std::process::exit(0);
+ } else {
+ println!("cargo:rustc-cfg=openssl");
+ }
+}
+
fn main() {
check_rustc_versions();
+ check_ssl_kind();
+
let target = env::var("TARGET").unwrap();
let (lib_dirs, include_dir) = find_openssl(&target);
# On Alpine Linux
apk add openssl-dev
-See rust-openssl README for more information:
+See rust-openssl documentation for more information:
- https://github.com/sfackler/rust-openssl#linux
+ https://docs.rs/openssl
",
e
);
(3, 4, 0) => ('3', '4', '0'),
(3, 4, _) => ('3', '4', 'x'),
(3, 5, _) => ('3', '5', 'x'),
+ (3, 6, 0) => ('3', '6', '0'),
+ (3, 6, _) => ('3', '6', 'x'),
_ => version_error(),
};
"
This crate is only compatible with OpenSSL (version 1.0.1 through 1.1.1, or 3.0.0), or LibreSSL 2.5
-through 3.5, but a different version of OpenSSL was found. The build is now aborting
+through 3.6.x, but a different version of OpenSSL was found. The build is now aborting
due to this version mismatch.
"