~/talk

Interop with Android, IOS and WASM in the same project

Talkat Rust Latam 2019 · 2019-03-29..03-30· [rust, webassembly]
slides:none on file

A Rust library actually compiles to Android, iOS and Wasm and exposes concrete FFI: uses extern "C" and #[no_mangle], returns pointers with Box::into_raw and passes them to Java as JNI long-as-pointer, provides a C bridging header for iOS, and uses wasm-bindgen / wasm-pack to produce a .wasm plus JS wrapper. Core logic lives in a shared module, platform modules adapt signatures with cfg attributes, and pitfalls include pointer safety, callbacks, and Wasm export limits (no generics or lifetimes).

AI-written summary · about

  1. 0:00Start
  2. 4:11Rust tools for FFI
  3. 14:24One more tool
  4. 16:18An idea
  5. 19:59Library's core logic
  6. 20:16WebAssembly Interface
  7. 21:52Standard FFI (iOS)
  8. 22:35Android Interface (JNI)
  9. 23:22Limitations
  10. 26:08References
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.