~/talk

Using Rust in your next Flutter SDK

Talkat Fluttercon Europe 2024 · 2024-07-03..07-05· [rust, flutter]
links:none on file
slides:none on file

Building a Flutter SDK with a Rust core, Ditto reuses one Rust implementation across nine client languages and measures roughly 10x faster for a hot path versus Dart; integration uses cargo + CMake, Dart's FFI and the Dart-published ffigen tool. Practical pitfalls include FFI dead-code stripping (fixed by forcing symbol retention), ownership bugs causing use-after-free (fixed by transferring and exposing Rust free functions), and a stubborn JNI header mismatch that forces keeping some Android calls in Dart.

AI-written summary · about

  1. 0:00Rust in Flutter SDKs
  2. 3:40Why Rust for SDKs
  3. 8:18Rust memory safety & performance
  4. 12:07Rust FFI with Dart
  5. 16:00Safe Dart from Rust
  6. 21:20Android JNI challenges
  7. 27:00Q&A
~/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.