Sorry for the catch-all pull request, but with these patches I can generate for example glib, gio and gtk without any special template (though with plenty of compiler warnings still), while also not having to also generate all the other dependencies those would have. I also have them generate the Cargo.toml and a build.rs to build.
In summary, the patches do
Adds an option to genaret Cargo.toml and build.rs build file for the -sys crate
Makes it so that any typedef/alias that ends up with a va_list gets for now silently ignored (since va_lists are not portable compiler/libc specific)
Makes it so that any struct that contains a bitmask becomes an opaque struct (since there is no portable way to determine the width of the resulting mask).
Makes it possible to either include a set (default to exclude), or exclude a set (default to include) dependencies when generating a crate. This makes it possible to for example generate the gtk-sys crate without any references to cairo, x11 etc.
Hi,
Sorry for the catch-all pull request, but with these patches I can generate for example glib, gio and gtk without any special template (though with plenty of compiler warnings still), while also not having to also generate all the other dependencies those would have. I also have them generate the Cargo.toml and a build.rs to build.
In summary, the patches do
Let me know what you think.