Skip to content
Beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

21. FFI and other forbidden friendships

Interop with C, Rust ABI profiles, extern, and callbacks—when you must talk to the outside world.

FFI and other forbidden friendships

FFI is where languages go to die. Beskid separates language interop law (language-meta) from host dispatch (execution ABI) so you know which spec page to argue about.

SectionTopic
Interop overviewDomain map and profiles.
FFI and externextern and contract imports.
C ABI profileLink-time and dynamic resolution.
Rust ABI profileBoundary stability (not “import any crate”).
Export and callbacksHosting Beskid from native code.
flowchart LR
  bd[Beskid code] --> extern[extern / import]
  extern --> cabi[C ABI profile]
  extern --> rabi[Rust ABI profile]
  cabi --> native[Native library]
  rabi --> shims[Runtime shims]

22. So you want to contribute