-
Notifications
You must be signed in to change notification settings - Fork 745
Option for only generating bindings for filenames matching a pattern #303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So the idea was replacing that Note that, even though it's not too well documented, the If your functions depend on other, you can explicitly blacklist the types that depend on other libraries and use other flags for the imports. This is relatively hard for sfml because as you said there are a lot of inter-dependencies. Let me know if the white/blacklisting approach works for you. I can try to implement For the record what the Yamakaky's bindgen does is just not parse the rest of files, which is easy, but it's also a source of internal problems inside that bindgen that we don't have to deal with (that kind of stuff is what made me do #37). |
I find constructing a whitelist manually for each type, function, constant, etc. too tedious to deal with. Especially since I was spoiled by |
This was fixed when |
Yamakaky/rust-bindgen has this option, which allows only generating bindings for filenames matching a pattern.
I make use of this feature for rust-sfml, where there are multiple auto-generated bindings that depend on each other, so I don't want to regenerate all the bindings for each library.
I'm trying out servo/rust-bindgen because Yamakaky/rust-bindgen is broken with Clang 3.9, but I cannot make the switch without this feature.
The text was updated successfully, but these errors were encountered: