diff --git a/nvpair-sys/generate-bindings b/nvpair-sys/generate-bindings index 611ca72..a92d897 100755 --- a/nvpair-sys/generate-bindings +++ b/nvpair-sys/generate-bindings @@ -31,10 +31,4 @@ bindgen "$d/wrapper.h" \ --blacklist-type '_IO_FILE' \ --blacklist-type 'FILE' \ --no-recursive-whitelist \ - --raw-line \ -' -// workaround for https://github.com/rust-lang/rust-bindgen/issues/1651 -#[allow(unknown_lints)] -#[allow(deref_nullptr)] -pub type size_t = ::std::os::raw::c_ulong;' \ -- `pkg-config libzfs_core --cflags` "${CFLAGS[@]}" diff --git a/nvpair-sys/src/bindings.rs b/nvpair-sys/src/bindings.rs index d8ce9c3..0a201b1 100644 --- a/nvpair-sys/src/bindings.rs +++ b/nvpair-sys/src/bindings.rs @@ -1,11 +1,5 @@ /* automatically generated by rust-bindgen 0.59.1 */ - -// workaround for https://github.com/rust-lang/rust-bindgen/issues/1651 -#[allow(unknown_lints)] -#[allow(deref_nullptr)] -pub type size_t = ::std::os::raw::c_ulong; - pub mod boolean_t { pub type Type = ::std::os::raw::c_uint; pub const B_FALSE: Type = 0; diff --git a/nvpair-sys/src/lib.rs b/nvpair-sys/src/lib.rs index 766bcf5..f1450c7 100644 --- a/nvpair-sys/src/lib.rs +++ b/nvpair-sys/src/lib.rs @@ -1,6 +1,10 @@ #![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] +// workaround for https://github.com/rust-lang/rust-bindgen/issues/1651 +#![allow(unknown_lints)] +#![allow(deref_nullptr)] +pub type size_t = ::std::os::raw::c_ulong; pub enum __va_list_tag {}