Bindings seem to generate properly for a similar struct, librashader_presets::ShaderPreset, and there is no warning for ShaderPreset. Both structs are exported in similar ways in the same crate. I even tried moving WildcardContext to the root of librashader_presets but the same error occurred.
Repro here: https://github.com/SnowflakePowered/librashader/tree/preset-context/librashader-capi.
Run under the
librashader-capi
directoryNote the error message
However,
WildcardContext
is a struct exported from a local crate here: librashader_presets::context::WildcardContext. The only real snaggle I could think of is that it's being accessed through a re-export of a root crate, librashader::presets::context::WildcardContext.Bindings seem to generate properly for a similar struct, librashader_presets::ShaderPreset, and there is no warning for
ShaderPreset
. Both structs are exported in similar ways in the same crate. I even tried movingWildcardContext
to the root oflibrashader_presets
but the same error occurred.