From fbb04e5efeb2cf5aebc98604a2bcbab78ae8c9a5 Mon Sep 17 00:00:00 2001 From: Phoenix Kahlo Date: Sun, 27 Oct 2024 15:07:15 -0500 Subject: [PATCH] Add rustc-check-cfg directive This fixes a warning that got printed when running `cargo check --tests` --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index 0cfee1a..46d6fd6 100644 --- a/build.rs +++ b/build.rs @@ -2,6 +2,8 @@ use std::env; #[allow(clippy::unusual_byte_groupings)] fn main() { + println!("cargo:rustc-check-cfg=cfg(ossl102)"); + println!("cargo:rustc-check-cfg=cfg(ossl111)"); if let Ok(version) = env::var("DEP_OPENSSL_VERSION_NUMBER") { let version = u64::from_str_radix(&version, 16).unwrap();