hobofan / rust-interop

Website to highlight Rust language interop options
https://hobofan.com/rust-interop
MIT License
23 stars 7 forks source link

uniffi #12

Open hobofan opened 3 years ago

hobofan commented 3 years ago

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

mhammond commented 8 months 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 :)