Open hobofan opened 3 years ago
Hey - thought I should bump this a few years later - UniFFI has come a long way!
UniFFI works by generating extern "C"
rust code for all "public" objects - the "ffi". There's "foreign" bindings which natively expose the same API using that ffi later, which exist for at least python, swift, kotlin, go, c#, ruby. It's used in all mozilla mobile products and even inside desktop Firefox via a JS layer :)
Seems to be pretty experimental still, and I can't quite make out how it works/is supposed to work.
https://github.com/mozilla/uniffi-rs