Don't ignore (unignore
or keep
) a struct or field
#2469
Labels
awaiting
Waiting for responses, PR, further discussions, upstream release, etc
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
FRB seems like it ignores structs it doesn't see in the code, but I want to use it as a way to share types in Rust and Dart. My use case is generated JSON and in Rust I can annotate a struct with serde's
derive
(in actuality, the library I am using to generate the JSON already uses serde internally so I usually don't have to annotate anything manually). Then I send that JSON to Dart and it'd be nice to share the Rust struct with Dart such that the class is autogenerated and thus kept in sync with Rust, as FRB already does.Describe the solution you'd like
To fix this, currently I have to make a dummy method using the struct to make sure FRB sees it and generates the Dart class from the struct, but I shouldn't have to make such a dummy method. Instead, there should be some sort of annotation like
unignore
that will force that class to be created.Describe alternatives you've considered
Writing a dummy method using the struct.
Additional context
NA
The text was updated successfully, but these errors were encountered: