From bf9714fb818daae882e7c04752b711308c550f15 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Fri, 26 Jul 2019 15:20:54 +0900 Subject: [PATCH] Re-enable rustfmt of generated bindings Because recent versions of bindgen generate their bindings on one line, because of bindgen's use of u128 and rust's warnings of its unsafety FFI-wise, and because of https://github.com/rust-lang/rust/issues/62999, combined, building the crate generates massive logs... which exceed travis's maximum log length. It was disabled in #13 because back then rustfmt had some problems with the bindgen output. Now that rustfmt is part of rust, these kind of problems presumably should happen less if at all. --- build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 4ae57c0..c597a7d 100644 --- a/build.rs +++ b/build.rs @@ -92,8 +92,7 @@ fn build(sdk_path: &str, target: &str) { // Generate the bindings. builder = builder .trust_clang_mangling(false) - .derive_default(true) - .rustfmt_bindings(false); + .derive_default(true); let bindings = builder.generate().expect("unable to generate bindings");