Skip to content

Commit

Permalink
Add rustc-check-cfg directive
Browse files Browse the repository at this point in the history
This fixes a warning that got printed when running `cargo check --tests`
  • Loading branch information
gretchenfrage committed Oct 27, 2024
1 parent 81243fa commit fbb04e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit fbb04e5

Please sign in to comment.