cbindgen icon indicating copy to clipboard operation
cbindgen copied to clipboard

Make `ir` module public

Open LucaCiucci opened this issue 1 year ago • 2 comments

This would allow users to easily customize the bindings by inspecting the bindings items.

Is there any particular reason why most of the modules are private?
If the concern is exposing too much complexity, we could just make ir and other modules public with a feature flag, such as "internals".

AFAIK the only walk-around at the moment is to use a modified version of this crate.

LucaCiucci avatar Oct 09 '24 06:10 LucaCiucci

I think this feature would be nice too, currently I am also using a modified version of this crate to do this. The IR is very useful when using the generated C objects in bindings for other languages.

zhp46 avatar Oct 11 '24 18:10 zhp46

@emilio are you the right person to tag here? I put up a PR to expose the ir module under a feature flag. I also had a similar use case where I'm using the ir and currently having to fork. Let me know what you think.

heesooy avatar Oct 17 '24 23:10 heesooy