-
I'm using bindgen to process a header for a library that accepts arguments of type As a concrete example, I'd like to be able to release a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There's no feature that does exactly that, but you can do something like it by combining two features:
Let me know if this fixes your issue. |
Beta Was this translation helpful? Give feedback.
There's no feature that does exactly that, but you can do something like it by combining two features:
First you need to call
blocklist_type
withFILE
so there's no definition forFILE
anywhere in your bindings. Given thatblocklist
methods are not recursive/transitive, all the uses ofFILE
in your bindings will still be present.Then you call
raw_line
withuse libc::FILE;
. Given thatlibc::FILE
andFILE
are the same type, they should be ABI compatible.Let me know if this fixes your issue.