Closed
Description
When building the postgres.rs
file generated by bindgen, lots and lots of warnings are emitted like the following:
warning: `extern` block uses type `u128` which is not FFI-safe: 128-bit integers don't currently have a known stable ABI
--> .../target/debug/build/pg-extend-f7ddabc2586f2e23/out/postgres.rs:3:186600
|
3 | # [ repr ( C ) ] # [ derive ( Copy ...
This is annoying because line number 3 contains all the code in the generated bindings file, multiplying its size, which results in console output of 183 MB! This can also hide other more relevant warnings.
I couldn't figure out a way to suppress this warning. But I don't understand why all the generated code is on one line, given that bindgen is instructed to use rustfmt:
let bindings = bindgen::Builder::default()
...
.rustfmt_bindings(true)
Do you have any idea why this is or should I contact bindgen upstream?
Any idea if there may be other solutions to this issue?
Metadata
Metadata
Assignees
Labels
No labels