Foreign Function Interface

The foreign function interface (FFI) lets Rux call functions defined outside the language — typically in C / C++ libraries — and exchange data with them. Each part of the FFI has a dedicated chapter:

TopicDescription
extern DeclarationsDeclaring functions defined outside Rux
Linking LibrariesBinding declarations to a native library with #Link

Pointers are central to passing memory across the boundary — see Pointers and extern.

See Also