I'm generating a
sys crate using bindgen. This is binding a stable
ABI but, there are some
#define features in the source: opt-in features, operating system/build system differences, etc.
I'd love not to have to require the generation every build, but I'm not sure if/how I can generate bindings for the various features and Os specific things? I guess I could just create a variety of different
wrapper.h style files with the various
#define defines and then use rust's feature gates to selectively include the generated code? but.. features are additive right? Also, I'm not sure how I do the builds for other platforms..
I assume there is a document about this somewhere but I haven't found it..