stadiamaps / ferrostar

A FOSS navigation SDK built from the ground up for the future
https://stadiamaps.github.io/ferrostar/
Other
91 stars 10 forks source link

[Flutter] Look into Dart binding generation #16

Open ianthetechie opened 8 months ago

ianthetechie commented 8 months ago

This looks promising: https://github.com/fzyzcjy/flutter_rust_bridge

ianthetechie commented 1 month ago

Looking at this vs other options (like a UniFFI fork which doesn't seem active), it seems like this is very much worth exploring!

A secondary option to consider is having Dart call into the iOS or Android library, but the trick there is that FerrostarCore is (by design) fairly platfrom-specific, so I'm heavily leaning toward something like flutter_rust_bridge and writing a new FerrostarCore implementation in Dart; the core is intentionally pretty compact, and this would let us build things per platform norms.