Open NobodyForNothing opened 3 weeks ago
Hi! Thanks for opening your first issue here! :smile:
Hi, yes this is not scanned currently, but it may not be hard to implement it (since impl Sth for A
is surely almost identical to impl A
). Feel free to PR for it, alternatively I may work on it in the next batch!
Describe the bug
Implementing a public trait (tested with
Default
) for a rust struct doesn't generate corresponding dart code.Steps to reproduce
impl Default for A { fn default() -> Self { A { val: 0 } } }
impl A { pub fn new() -> Self { A { val: 0 } } }
Expected behavior
I expect the generator to either:
default
method in theA
dart class (prefered)Generated binding code
No response
OS
Arch Linux
Version of
flutter_rust_bridge_codegen
No response
Flutter info
Version of
clang++
17.0.6 (clang --version)
Additional context
No response