Merge pull request #42 from cloudflare/jnelson/warnings

Ignore bindgen warnings until they're fixed upstream
This commit is contained in:
Connor Jones 2021-07-27 23:43:10 -04:00 committed by GitHub
commit 6355fd816f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;