Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Already_declared causes swift generation to never declare Class #259

Open
PrismaPhonic opened this issue Mar 14, 2024 · 1 comment
Open

Comments

@PrismaPhonic
Copy link
Contributor

I've found when generating a swift package from my rust FFI bindings, that if I use already_declared on a type in a subsequent extern "Rust" block, that the generated code never declares the class initially (it only includes extension)

I can provide some concrete examples but it really is that simple that I'm not sure an example would show anything other than what I just wrote :-P

@chinedufn
Copy link
Owner

A bit easier to see it as a bridge module than as words. For example, I can't tell if your scenario has 2 bridge modules or one.
I'm assuming two, but would prefer not to assume.

So yes please comment with an minimal example bridge module that illustrates the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants