You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using rustfield_enum() on this, but couldn't make it work. Also, I'd like to hide _Variant so I tried to use blocklist_type("_Variant"), but this leads to it being ignore before the variant is aliased and therefore the build fails.
Would it be possible to achieve something similar automatically with bindgen?
Thank you!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to use bindgen to produce some nice binding for a C API; in there, there's an enumeration that looks like this:
This could be nicely done in Rust with
or something on these lines.
I tried using
rustfield_enum()on this, but couldn't make it work. Also, I'd like to hide_Variantso I tried to useblocklist_type("_Variant"), but this leads to it being ignore before the variant is aliased and therefore the build fails.Would it be possible to achieve something similar automatically with bindgen?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions