jolocom / rust-multi-target

1 stars 3 forks source link

improve FFI layer #6

Open chunningham opened 3 years ago

chunningham commented 3 years ago

Use a tool like flapigen to remove the need for hand-written FFI code between Rust and Java/ObjC modules

chunningham commented 3 years ago

we can also use napi-rs for single-module node integration (no more multi-platform multi-version optional dependancy multiplexing)

chunningham commented 3 years ago

8 provides an example of flapigen usage which we can build out to the RN bindings

chunningham commented 3 years ago

neon will adopt the N-API soon, so the various versions for the node modules can be removed once neon has implemented that change