My rust code defines some public types (functrions) . These types are not referenced by any functions, structures, enums, etc. exported by cbindgen. Still, I would like to export as typedefs in my header (without listing them all under export.include key of cbindgen.toml).
Example of such a type:
pub type ErrorCallbackType = extern "C" fn(*mut c_void, *mut c_char) -> c_void;
... it is not referenced by any code after.
What could I possibly do about it? Maybe annotate them somehow? Something like cbindgen:include (just like we have cbindgen:ignore)?..
Defining some extra symbols just for referenceing these types seems ugly to me.
My
rustcode defines some public types (functrions) . These types are not referenced by any functions, structures, enums, etc. exported bycbindgen. Still, I would like to export astypedefs in my header (without listing them all underexport.includekey ofcbindgen.toml).Example of such a type:
... it is not referenced by any code after.
What could I possibly do about it? Maybe annotate them somehow? Something like
cbindgen:include(just like we havecbindgen:ignore)?..Defining some extra symbols just for referenceing these types seems ugly to me.