I have a bunch of repr(u8) or repr(u16) enums in my project. They are marked with pub, but aren't loaded with pub mod, only mod. Therefore, they're not part of the public API. For some of them (but not all!) cbindgen generates their definitions in the output header file, as well as a few locally public (but still private to the public API). Additionally, arbitrary unused headers are included (such as stdlib.h, stdarg.h, etc).
I have tried it using both the default config file found in the docs, as well as an empty config file, and both resulting in the dane weird quirk. Maybe I'm doing something wrong, but this seems like really strange default behavior.
I have a bunch of repr(u8) or repr(u16) enums in my project. They are marked with
pub
, but aren't loaded withpub mod
, onlymod
. Therefore, they're not part of the public API. For some of them (but not all!) cbindgen generates their definitions in the output header file, as well as a few locally public (but still private to the public API). Additionally, arbitrary unused headers are included (such as stdlib.h, stdarg.h, etc).I have tried it using both the default config file found in the docs, as well as an empty config file, and both resulting in the dane weird quirk. Maybe I'm doing something wrong, but this seems like really strange default behavior.
Thank you for all of your hard work!