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
Good observation, that looks like a bug, but the workaround is to try to put it at non-mod.rs. I may look at it later to see whether there is an easy fix.
Describe the bug
If I put a struct at the root of the api, i.e.
src/api/mod.rs
, structs are converted to classes, but no methods are added to them.The class
MyStruct
is generated, but with no methods. This behavior is the same whether the struct is opaque or not.If I move the struct anywhere else in the api sub-module, it then works.
Steps to reproduce
src/api/mod.rs
src/api/works.rs
Logs
Expected behavior
No response
Generated binding code
No response
OS
No response
Version of
flutter_rust_bridge_codegen
No response
Flutter info
No response
Version of
clang++
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: