fix: 解决bindings.rs报了很多警告的问题 (#85)

* fix: 解决bindings.rs报一堆警告的问题
This commit is contained in:
login 2022-11-17 20:29:29 +08:00 committed by GitHub
parent cffd7144fb
commit c6174797dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,9 @@ fn main() {
.use_core()
.ctypes_prefix("::core::ffi")
.generate_inline_functions(true)
.raw_line("#![allow(dead_code)]")
.raw_line("#![allow(non_upper_case_globals)]")
.raw_line("#![allow(non_camel_case_types)]")
// Tell cargo to invalidate the built crate whenever any of the
// included header files changed.
.parse_callbacks(Box::new(bindgen::CargoCallbacks))