Skip to content

Commit bf9714f

Browse files
committed
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 rust-lang/rust#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.
1 parent d6470b1 commit bf9714f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ fn build(sdk_path: &str, target: &str) {
9292
// Generate the bindings.
9393
builder = builder
9494
.trust_clang_mangling(false)
95-
.derive_default(true)
96-
.rustfmt_bindings(false);
95+
.derive_default(true);
9796

9897
let bindings = builder.generate().expect("unable to generate bindings");
9998

0 commit comments

Comments
 (0)