diff --git a/boring-sys/Cargo.toml b/boring-sys/Cargo.toml index 02a756fe..e8ec9fca 100644 --- a/boring-sys/Cargo.toml +++ b/boring-sys/Cargo.toml @@ -27,7 +27,7 @@ include = [ ] [build-dependencies] -bindgen = { version = "0.60", default-features = false, features = ["runtime"] } +bindgen = { version = "0.65.1", default-features = false, features = ["runtime"] } cmake = "0.1" [features] diff --git a/boring-sys/build.rs b/boring-sys/build.rs index c6e1de7e..7328bffe 100644 --- a/boring-sys/build.rs +++ b/boring-sys/build.rs @@ -403,14 +403,16 @@ fn main() { .derive_debug(true) .derive_default(true) .derive_eq(true) - .default_enum_style(bindgen::EnumVariation::NewType { is_bitfield: false }) + .default_enum_style(bindgen::EnumVariation::NewType { + is_bitfield: false, + is_global: false, + }) .default_macro_constant_type(bindgen::MacroTypeVariation::Signed) .generate_comments(true) .fit_macro_constants(false) .size_t_is_usize(true) .layout_tests(true) .prepend_enum_name(true) - .rustfmt_bindings(true) .clang_args(get_extra_clang_args_for_bindgen()) .clang_args(&["-I", &include_path]);