You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a duplicate of the root issue of #7. Essentially cbindgen doesn't understand fully qualified names, and it doesn't understand imports and aliases. This is a longstanding issue, unfortunately.
I'll close this here. If you'd provide some of these details in that issue, I'd greatly appreciate that.
A minimalistic crate like this …
… generates a header like this …
… while it should generate something like this instead:
What's wrong:
Foobar<T>
is not used in any exportedfn
and hence shouldn't be generated.Foobar
however is used in an exportedfn
and hence should be generated.Observations:
mod foo
andmod bar
makes it behave correctly.#[repr(C)]
tobar::Foobar
makes it behave correctly, strangely enough.<T>
doesn't seem to be strictly necessary for triggering this bug, but makes things easier to spot in the generated header.Looks like there's a name collision in the type registration. Probably by using their local instead of fully qualified names for lookup?
The text was updated successfully, but these errors were encountered: