kanidm/server/lib/build.rs
2023-03-01 13:10:52 +10:00

16 lines
327 B
Rust

// include!("src/lib/audit_loglevel.rs");
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 >= 0x3000_0000 {
println!("cargo:rustc-cfg=openssl3");
}
}
profiles::apply_profile();
}