Ignore bindgen warnings until they're fixed upstream

We don't have any way of fixing these, and it's not feasible to switch away from bindgen.
Ignore the warnings for now.
This commit is contained in:
Joshua Nelson 2021-07-27 16:21:13 -04:00
parent 9cb2e41e1f
commit 57eac7dfc3
1 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,11 @@ use std::convert::TryInto;
use std::ffi::c_void;
use std::os::raw::{c_char, c_int, c_uint, c_ulong};
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
#[allow(deref_nullptr)] // TODO: remove this when https://github.com/rust-lang/rust-bindgen/issues/1651 finally gets fixed
mod generated {
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
}
pub use generated::*;
#[cfg(target_pointer_width = "64")]
pub type BN_ULONG = u64;