hadilq / rust-flutter-reactive

This is a sample app to improve consistency over Mobile App Development.
Apache License 2.0
36 stars 4 forks source link

[Enhancement] Auto-generate high-level memory-safe binding between Dart and Rust via flutter_rust_bridge #2

Open fzyzcjy opened 2 years ago

fzyzcjy commented 2 years ago

Hi, thanks for the project! However, when testing it, I find that flatbuffers is sometimes not that easy to play with, and such serialization seems to be a bit slower than directly calling ffi. Therefore, maybe we can use flutter_rust_bridge to generate the binding code? It is high-level and memory-safe, so we can get the same feeling as flatbuffer (no need for manual memory allocate/free, etc), while having a better speed and usability.

hadilq commented 2 years ago

Thanks @fzyzcjy for reaching out. Your project looks awesome. It may take a while, but I'll try it in the future for this project.

fzyzcjy commented 2 years ago

Thank you and looking forward to it!