~/talk

Dart FFI With Rust

Talkat Flutter Connection 2024 · on Wednesday, 2024-04-24· [rust]
links:none on file
slides:none on file

Shows Dart calling compiled Rust dynamic libraries via dart:ffi by opening the .so/.dylib/.dll, looking up symbols and calling functions marked with extern "C" and no_mangle. Demonstrates a string-printing introduce function and an add(int) that returns a sum — Dart loads the library, calls the Rust function and receives the integer result at compile-checked types. Recommends flutter_rust_bridge for automatic bindings and cross‑platform builds that run on mobile and desktop; claims portability and reduced runtime overhead.

AI-written summary · about

  1. 0:00Introduction to Dart FFI
  2. 1:04What is Dart FFI
  3. 4:37Overview of Rust
  4. 9:15Setting up Dart and Rust
  5. 12:04Sending and receiving data
  6. 13:07Handling complex objects
  7. 14:11Resources and closing
  8. 14:31Q&A: Portability on iOS
  9. 16:36Q&A: Developer experience
  10. 18:25Q&A: Other languages for FFI
  11. 19:06Q&A: Code generator for Dart-Rust
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.