diff --git a/libs/crypto/build.rs b/libs/crypto/build.rs new file mode 100644 index 000000000..ad5561d4c --- /dev/null +++ b/libs/crypto/build.rs @@ -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"); + } + } +} diff --git a/libs/file_permissions/Cargo.toml b/libs/file_permissions/Cargo.toml index 0d15f42f6..5d64817cf 100644 --- a/libs/file_permissions/Cargo.toml +++ b/libs/file_permissions/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" [dependencies] [target.'cfg(target_family = "windows")'.dependencies] -whoami.workspace = true +whoami = {workspace = true} [target.'cfg(not(target_family = "windows"))'.dependencies] -users.workspace = true +users = {workspace = true}