Autogenerating Rust-JS Bindings with UniFFI
hacks.mozilla.org
hacks.mozilla.org
Could UniFFI be used to generate native modules to use rust with react native?
The web story with wasm already looks like it could eat away a big chunk of JS's share if WebIDL becomes a thing.
Would be great if React Native team extend TurboModules to support generating Rust interop instead of just C++ - there are many truely cross platform rust modules (including support for iOS/android) than c++ and cargo makes much better developer experience than cmake.
PythonMonkey lets you arbitrarily execute JS code like:
``` import pythonmonkey pythonmonkey.eval("(() => { console.log('hi from js'); })()") ``` for reference.
wasm-bindgen does something similar though, right?