-
Notifications
You must be signed in to change notification settings - Fork 337
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
Support inner bridge mod #119
Comments
I might be misinterpreting this issue, but whenever I put the
Reproduce
Module structure
Error
|
Probably your |
Oh, so it needs to be within the file passed to Makes sense. So the correct call would be |
It can be within any submodule in the given file -- like in the comment at the top of this issue the bridge is the submodule |
Currently we only find the #[cxx::bridge] invocation if it is at the top level of the Rust file passed as argument to the code generator. If it isn't at the top level, we fail with an error that looks like:
cxxbridge: no #[cxx::bridge] module found
It would be good to also look for it inside of nested modules:
The text was updated successfully, but these errors were encountered: