diff --git a/Cargo.toml b/Cargo.toml index b509f18..de5b370 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,4 +13,4 @@ license = "GPL-3.0-only" [dependencies] [build-dependencies] -bindgen = "0.49.2" +bindgen = "0.49.3" diff --git a/build.rs b/build.rs index f06dfe7..ee80951 100644 --- a/build.rs +++ b/build.rs @@ -16,7 +16,7 @@ fn main() { // and functions only. .whitelist_function("xc_.*") // Keep C's enums as Rust's enums. - .default_enum_style(bindgen::EnumVariation::Rust) + .default_enum_style(bindgen::EnumVariation::Rust { non_exhaustive: false }) // Finish the builder and generate the bindings. .generate() // Unwrap the Result and panic on failure.