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
Currently there is only --sort-semantically to sort by item type. Sorting by name would make it easier to diff bindings generated for different platforms that have different order of items in their headers.
The text was updated successfully, but these errors were encountered:
I'm using the bindgen cli, so a callback won't work. I don't really care about the exact order in which items are sorted for as long as the output doesn't depend on the order of items in the C source and is robust against additions and removals of items in the C source.
This issue makes me think that we need some standard way to turn ParseCallbacks into some kind of interface that works nicely with bindgen-cli.
The easiest thing that comes to mind is probably being able to specify a command that can communicate with bindgen via stdio, but that means that we need to agree on the input and output format and maintain it under our stability guarantees.
Another option would be to allow bindgen to dynamically load a library that does this for us. The advantage there is that we can "just" use the C ABI for everything but at the same time it means that you cannot just write a bash script for it.
Currently there is only
--sort-semantically
to sort by item type. Sorting by name would make it easier to diff bindings generated for different platforms that have different order of items in their headers.The text was updated successfully, but these errors were encountered: