diff --git a/Cargo.toml b/Cargo.toml index 463eade..76d1e92 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xenctrl-sys" -version = "0.1.1" +version = "0.1.2" authors = ["Mathieu Tarral "] edition = "2018" description = "Rust FFI bindings for libxenctrl" @@ -16,4 +16,4 @@ build = "build.rs" [dependencies] [build-dependencies] -bindgen = "0.51.1" +bindgen = "0.69.4" diff --git a/build.rs b/build.rs index 4d4051b..cb375d8 100644 --- a/build.rs +++ b/build.rs @@ -19,7 +19,7 @@ fn main() { // Disable data layout tests. .layout_tests(false) // Run rustfmt on the bindings - .rustfmt_bindings(true) + .formatter(bindgen::Formatter::Rustfmt) //initialize structs with default values .derive_default(true) // Finish the builder and generate the bindings.