"--blocklist-file" option doesn't work as advertized #2546
-
Hi, I am trying to generate Rust bindings for headers found in the Xen project. Some files, like xenctrl.h include system headers that I do not want to generate bindings for. I am using this script to call bindgen. Reading the documentation option I am using bindgen 0.65.1 What am I doing wrong? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey, so I did a quick check with a header that only has To expand a little bit further, if what you want is only include items from your input headers you'd have to use |
Beta Was this translation helpful? Give feedback.
-
Hi Christian, First, just to make sure we are looking at the same thing, can you point out where in the documentation it is mentionned that Second, I experimented with Scenario 1: Scenario 2: Scenario 3: I had to do the following to get the output I was looking for: Is there a way to use Many thanks for the help. |
Beta Was this translation helpful? Give feedback.
Hi Mathieu! 👋
It is not stated explicitly. The documentation for
allowlist_file
mentions its transitive property and theblocklist_file
does not. One could infer that the latter won't be transitive but I agree, it should be explicitly stated.