mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
parent
0e57b6f914
commit
a3016ea6ed
13
libs/crypto/build.rs
Normal file
13
libs/crypto/build.rs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
// 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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,7 +8,7 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
[target.'cfg(target_family = "windows")'.dependencies]
|
[target.'cfg(target_family = "windows")'.dependencies]
|
||||||
whoami.workspace = true
|
whoami = {workspace = true}
|
||||||
|
|
||||||
[target.'cfg(not(target_family = "windows"))'.dependencies]
|
[target.'cfg(not(target_family = "windows"))'.dependencies]
|
||||||
users.workspace = true
|
users = {workspace = true}
|
||||||
|
|
Loading…
Reference in a new issue