-
Notifications
You must be signed in to change notification settings - Fork 307
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
Is it possible for the output of FRB to be directly called by Android/iOS Native? #2503
Comments
Hi! Thanks for opening your first issue here! 😄 |
Hi, frb does not directly support Rust to Android/iOS native. But may I know a bit more details about the project - why is the code shared betweeen android/ ios and dart? (we may discuss e.g. if it is possible to be shared only to dart) |
Our project is a hybrid Flutter application based on flutter_boost, with Flutter making up approximately 65% of the codebase. We need to maintain three parts: Android Native, iOS Native, and Flutter. Currently, we have some common logic processing, such as obtaining image metadata, which returns the image format, width, and height: There are many similar scenarios like getImageMeta, and we don't want to repeat the logic implementation every time. Therefore, we want to use Rust to share this logic. I've looked into mozilla/uniffi-rs. However, it doesn't have official Dart bindings, and the third-party implementations are not very complete. On the other hand, frb is more actively maintained, so I prefer to choose frb. Therefore, I hope frb can extend its capabilities so that both Android and iOS can also benefit from it. |
Hmm I see. Some brainstorms:
|
Thanks for this lib. our project is flutter-module mode. we want share code with android&ios&dart. we want reuse the output of FRB. the dartbinding-fork of uniffi-rs is unactive.
The text was updated successfully, but these errors were encountered: